Simplified rendering of sha256sum

Signed-off-by: Patrick <94605888+pgmgb@users.noreply.github.com>
This commit is contained in:
Patrick 2024-11-14 16:00:50 +01:00
parent 1e77abf094
commit 7ce6a4f50c
No known key found for this signature in database
5 changed files with 10 additions and 10 deletions

View file

@ -22,9 +22,9 @@ spec:
template:
metadata:
annotations:
checksum/cmd-params: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cmd-params: {{ include "argo-cd.config.params" . | sha256sum }}
{{- if .Values.configs.cm.create }}
checksum/cm: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cm: {{ include "argo-cd.config.cm" . | sha256sum }}
{{- end }}
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.controller.podAnnotations) }}
{{- range $key, $value := . }}

View file

@ -24,7 +24,7 @@ spec:
template:
metadata:
annotations:
checksum/cmd-params: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cmd-params: {{ include "argo-cd.config.params" . | sha256sum }}
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.applicationSet.podAnnotations) }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}

View file

@ -26,12 +26,12 @@ spec:
template:
metadata:
annotations:
checksum/cmd-params: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cmd-params: {{ include "argo-cd.config.params" . | sha256sum }}
{{- if .Values.repoServer.certificateSecret.enabled }}
checksum/repo-server-tls: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-repo-server-tls-secret.yaml") . | fromYaml).data | toYaml | sha256sum }}
{{- end }}
{{- if .Values.configs.cm.create }}
checksum/cm: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cm: {{ include "argo-cd.config.cm" . | sha256sum }}
{{- end }}
{{- if .Values.configs.cmp.create }}
checksum/cmp-cm: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cmp-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}

View file

@ -26,9 +26,9 @@ spec:
template:
metadata:
annotations:
checksum/cmd-params: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cmd-params: {{ include "argo-cd.config.params" . | sha256sum }}
{{- if .Values.configs.cm.create }}
checksum/cm: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cm: {{ include "argo-cd.config.cm" . | sha256sum }}
{{- end }}
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.server.podAnnotations) }}
{{- range $key, $value := . }}

View file

@ -25,12 +25,12 @@ spec:
template:
metadata:
annotations:
checksum/cmd-params: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cmd-params: {{ include "argo-cd.config.params" . | sha256sum }}
{{- if (index .Values.configs.cm "dex.config") }}
checksum/cm: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | fromYaml).data | toYaml | sha256sum }}
checksum/cm: {{ include "argo-cd.config.cm" . | sha256sum }}
{{- end }}
{{- if .Values.dex.certificateSecret.enabled }}
checksum/dex-server-tls: {{ include (print $.Template.BasePath "/argocd-configs/argocd-dex-server-tls-secret.yaml") . | sha256sum }}
checksum/dex-server-tls: {{ (include (print $.Template.BasePath "/argocd-configs/argocd-dex-server-tls-secret.yaml") . | fromYaml).data | toYaml | sha256sum }}
{{- end }}
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.dex.podAnnotations) }}
{{- range $key, $value := . }}