feat(argo-cd): Update appset deployment template (#2145)

- add cmd-params checksum annotation to the applicationSet deployment to
  trigger an automated rollout when changed.

Signed-off-by: Laurent Lavaud <llavaud@lvdconsulting.pro>
Signed-off-by: Laurent Lavaud <llavaud@users.noreply.github.com>
This commit is contained in:
Laurent Lavaud 2023-07-04 16:07:03 +02:00 committed by GitHub
parent 5c4506b481
commit 5f55ef2c4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -24,12 +24,13 @@ spec:
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.applicationSet.name) | nindent 6 }}
template:
metadata:
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.applicationSet.podAnnotations) }}
annotations:
checksum/cmd-params: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | sha256sum }}
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.applicationSet.podAnnotations) }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.applicationSet.name "name" .Values.applicationSet.name) | nindent 8 }}
{{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.applicationSet.podLabels) }}