Add annotation/checksum support.
Showing
1 changed file
with
5 additions
and
4 deletions
... | @@ -23,10 +23,11 @@ spec: | ... | @@ -23,10 +23,11 @@ spec: |
23 | {{- end }} | 23 | {{- end }} |
24 | template: | 24 | template: |
25 | metadata: | 25 | metadata: |
26 | {{- with .Values.podAnnotations }} | 26 | {{- $checksums := (dict |
27 | annotations: | 27 | "checksum/config-map" (include (print .Template.BasePath "/config-map.yaml") . | sha256sum | trunc 63) |
28 | {{- toYaml . | nindent 8 }} | 28 | "checksum/secret" (include (print .Template.BasePath "/secret.yaml") . | sha256sum | trunc 63) |
29 | {{- end }} | 29 | ) }} |
30 | annotations: {{ merge (dict) .Values.podAnnotations $checksums | toYaml | nindent 8 }} | ||
30 | labels: | 31 | labels: |
31 | {{- include "moqui.selectorLabels" . | nindent 8 }} | 32 | {{- include "moqui.selectorLabels" . | nindent 8 }} |
32 | spec: | 33 | spec: | ... | ... |
-
Please register or sign in to post a comment