Files
cloud-configuration/argocd/app-of-apps/test/templates/applications.yaml
T
2023-11-02 08:38:35 +01:00

35 lines
830 B
YAML

{{- range .Values.applications }}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .name }}
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
syncPolicy:
{{- if .serverSideApply }}
syncOptions:
- ServerSideApply=true
{{- end }}
automated:
prune: true
destination:
namespace: {{ .namespace }}
server: {{ $.Values.overall.destinationServer }}
project: {{ .project }}
source:
repoURL: {{ .repoURL }}
targetRevision: {{ .targetRevision }}
{{- if .repoURL | contains "chart" }}
chart: {{ .chart | default .name }}
{{- else }}
path: argocd/{{ .name }}/{{ $.Values.overall.environment }}
{{- end }}
helm:
ignoreMissingValueFiles: true
valueFiles:
- argocd_values.yaml
{{- end }}