From ada32b5bd1e0c9b6294e000e1d1b4cd333c464a5 Mon Sep 17 00:00:00 2001 From: Frank Kloeker Date: Fri, 1 Dec 2023 15:23:48 +0100 Subject: [PATCH] add checksum annotation in deployment Signed-off-by: Frank Kloeker --- chart/templates/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 93d818d8..9f58f1ef 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -11,8 +11,9 @@ spec: {{- include "sparrow.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: