{{- 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 "chart" }} chart: {{ .name }} {{- else }} path: argocd/{{ .name }}/{{ $.Values.overall.environment }} {{- end }} helm: ignoreMissingValueFiles: true valueFiles: - argocd_values.yaml {{- end }}