From e8699c1efa866db96bcd427604952549c8c62248 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Wed, 3 Jul 2024 16:48:58 -0700 Subject: [PATCH] Auto-restart proxy pod when configuration changes This restarts the pod automatically whenever the secret (containing our config) changes. Very helpful for CI/CD scenarios, as otherwise a human has to manually trigger a pod restart --- kbatch/templates/deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/kbatch/templates/deployment.yaml b/kbatch/templates/deployment.yaml index 497531f..d8009ee 100644 --- a/kbatch/templates/deployment.yaml +++ b/kbatch/templates/deployment.yaml @@ -15,6 +15,7 @@ spec: metadata: {{- with .Values.podAnnotations }} annotations: + checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- toYaml . | nindent 8 }} {{- end }} labels: