Skip to content

Commit aea81ef

Browse files
committed
mcp: add checksum/config with sha256 of the configmap content
Signed-off-by: Matheus Pimenta <[email protected]>
1 parent 1b2dbc4 commit aea81ef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

charts/flux-operator-mcp/templates/deployment.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ spec:
1818
{{- include "flux-operator-mcp.selectorLabels" . | nindent 6 }}
1919
template:
2020
metadata:
21-
{{- with .Values.commonAnnotations }}
21+
{{- if or .Values.config.enabled .Values.commonAnnotations }}
2222
annotations:
23+
{{- end }}
24+
{{- if .Values.config.enabled }}
25+
checksum/config: {{ (include (print $.Template.BasePath "/configmap.yaml") . | fromYaml).data | toYaml | sha256sum }}
26+
{{- end }}
27+
{{- with .Values.commonAnnotations }}
2328
{{- toYaml . | nindent 8 }}
2429
{{- end }}
2530
labels:

0 commit comments

Comments
 (0)