From 4762b595dc2fc50ed047506d04ab8261a2f1ebdb Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Tue, 12 Sep 2023 04:22:20 +0200 Subject: [PATCH] Add checksum of secrets to diracx deployment annotations --- diracx/templates/deployment.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/diracx/templates/deployment.yaml b/diracx/templates/deployment.yaml index e7b248b..5307ffc 100644 --- a/diracx/templates/deployment.yaml +++ b/diracx/templates/deployment.yaml @@ -13,10 +13,11 @@ spec: {{- include "diracx.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} annotations: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- with .Values.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} + checksum/settings: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} labels: {{- include "diracx.selectorLabels" . | nindent 8 }} spec: