mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
{{- range .Values.applications }}
|
|
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ .name }}
|
|
namespace: argocd
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: {{ .syncWave | quote }}
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
{{- if .ignoreDifferences }}
|
|
ignoreDifferences:
|
|
{{- range .ignoreDifferences }}
|
|
- kind: {{ .kind }}
|
|
{{- if .group }}
|
|
group: {{ .group }}
|
|
{{- end }}
|
|
name: {{ .name }}
|
|
namespace: {{ .namespace }}
|
|
jsonPointers:
|
|
{{- toYaml .jsonPointers | nindent 10 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
syncPolicy:
|
|
{{- if .serverSideApply }}
|
|
syncOptions:
|
|
- ServerSideApply=true
|
|
- RespectIgnoreDifferences=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 }}
|