
* feat(argocd-apps)!: use maps instead of lists Signed-off-by: irizzant <i.rizzante@gmail.com> * fix(chart): add artifacthub annotations Signed-off-by: irizzant <i.rizzante@gmail.com> * fix: remove not needed lines Signed-off-by: irizzant <i.rizzante@gmail.com> * fix: use the right range function Signed-off-by: irizzant <i.rizzante@gmail.com> * fix(argocd-apps): fix issues Signed-off-by: irizzant <i.rizzante@gmail.com> * fix: fix newline issue in values.yaml Signed-off-by: irizzant <i.rizzante@gmail.com> * fix: Use range function properly (revert complex changes on item-templates) Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> --------- Signed-off-by: irizzant <i.rizzante@gmail.com> Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> Co-authored-by: Jason Meridth <jmeridth@gmail.com> Co-authored-by: Marco Maurer <mkilchhofer@users.noreply.github.com> Co-authored-by: Aikawa <yu.croco@gmail.com>
90 lines
2.2 KiB
YAML
90 lines
2.2 KiB
YAML
{{- range $appSetName, $appSetData:= .Values.applicationsets }}
|
|
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
{{- with $appSetData.additionalAnnotations }}
|
|
annotations:
|
|
{{- range $key, $value := . }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with $appSetData.additionalLabels }}
|
|
labels:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ $appSetName }}
|
|
{{- with $appSetData.namespace }}
|
|
namespace: {{ . }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if hasKey $appSetData "goTemplate" }}
|
|
goTemplate: {{ $appSetData.goTemplate }}
|
|
{{- end }}
|
|
{{- with $appSetData.generators }}
|
|
generators:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $appSetData.ignoreApplicationDifferences }}
|
|
ignoreApplicationDifferences:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $appSetData.strategy }}
|
|
strategy:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $appSetData.syncPolicy }}
|
|
syncPolicy:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $appSetData.template }}
|
|
template:
|
|
{{- with .metadata }}
|
|
metadata:
|
|
{{- with .annotations }}
|
|
annotations:
|
|
{{- range $key, $value := . }}
|
|
{{ $key }}: {{ $value | squote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .labels }}
|
|
labels:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
name: {{ .name | squote }}
|
|
{{- with .namespace }}
|
|
namespace: {{ . | squote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .spec }}
|
|
spec:
|
|
project: {{ .project | squote }}
|
|
{{- with .source }}
|
|
source:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .sources }}
|
|
sources:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
destination:
|
|
{{- toYaml .destination | nindent 8 }}
|
|
{{- with .syncPolicy }}
|
|
syncPolicy:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .ignoreDifferences }}
|
|
ignoreDifferences:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .info }}
|
|
info:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- end }}
|
|
{{- with $appSetData.templatePatch }}
|
|
templatePatch: |
|
|
{{- . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|