2024-03-23 15:38:56 +00:00
|
|
|
{{- range $appName, $appData:= .Values.applications }}
|
2022-08-22 12:32:07 +00:00
|
|
|
---
|
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
|
|
kind: Application
|
|
|
|
metadata:
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- with $appData.additionalAnnotations }}
|
2022-08-22 12:32:07 +00:00
|
|
|
annotations:
|
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- with $appData.additionalLabels }}
|
2022-08-22 12:32:07 +00:00
|
|
|
labels:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2024-03-23 15:38:56 +00:00
|
|
|
name: {{ $appName }}
|
|
|
|
{{- with $appData.namespace }}
|
2022-08-22 12:32:07 +00:00
|
|
|
namespace: {{ . }}
|
|
|
|
{{- end }}
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- with $appData.finalizers }}
|
2022-08-22 12:32:07 +00:00
|
|
|
finalizers:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
2024-03-23 15:38:56 +00:00
|
|
|
project: {{ tpl $appData.project $ }}
|
|
|
|
{{- with $appData.source }}
|
2022-08-22 12:32:07 +00:00
|
|
|
source:
|
2023-02-09 22:43:38 +00:00
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- with $appData.sources }}
|
2023-02-09 22:43:38 +00:00
|
|
|
sources:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2022-08-22 12:32:07 +00:00
|
|
|
destination:
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- toYaml $appData.destination | nindent 4 }}
|
|
|
|
{{- with $appData.syncPolicy }}
|
2022-08-22 12:32:07 +00:00
|
|
|
syncPolicy:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- with $appData.revisionHistoryLimit }}
|
2023-03-02 14:56:41 +00:00
|
|
|
revisionHistoryLimit: {{ . }}
|
|
|
|
{{- end }}
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- with $appData.ignoreDifferences }}
|
2022-08-22 12:32:07 +00:00
|
|
|
ignoreDifferences:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2024-03-23 15:38:56 +00:00
|
|
|
{{- with $appData.info }}
|
2022-08-22 12:32:07 +00:00
|
|
|
info:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|