mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
31 lines
719 B
YAML
31 lines
719 B
YAML
{{- range .Values.applications }}
|
|
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ .name }}
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
destination:
|
|
namespace: {{ .namespace }}
|
|
server: {{ $.Values.overall.destinationServer }}
|
|
project: {{ .project }}
|
|
source:
|
|
repoURL: {{ .repoURL }}
|
|
targetRevision: {{ .targetRevision }}
|
|
{{- if .repoURL | contains "git" }}
|
|
path: argocd/{{ .name }}/{{ $.Values.overall.environment }}
|
|
{{- else }}
|
|
chart: {{ .name }}
|
|
{{- end }}
|
|
helm:
|
|
ignoreMissingValueFiles: true
|
|
valueFiles:
|
|
- argocd_values.yaml
|
|
{{- end }}
|