7e1dd3be by Adam Heath

Add annotation/checksum support.

1 parent c1ccbbf1
...@@ -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:
......