Example Apps to Demonstrate Argo CD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
976 B

{{- range $app := .Values.argocdApplications -}}
{{ if not .disable }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .name }}
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ $.Values.global.spec.project }}
source:
repoURL: {{ $.Values.global.spec.source.repoURL }}
targetRevision: {{ default $.Values.global.spec.source.targetRevision .targetRevision }}
path: {{ .name }}
{{- if default $.Values.global.helmDefault .helm }}
helm:
valueFiles:
- {{ $.Values.global.valuesFile }}
{{- end }}
destination:
namespace: {{ default $.Values.global.spec.destination.namespace .namespace }}
server: {{ $.Values.global.spec.destination.server }}
syncPolicy:
{{- if not .disableAutomated }}
automated:
prune: false
selfHeal: true
allowEmpty: false
{{- end }}
syncOptions:
- CreateNamespace=true
---
{{- end }}
{{- end }}