From 64d2846935e095e849aad85044bbacd1a8232648 Mon Sep 17 00:00:00 2001 From: Jozef Halgas Date: Wed, 6 Mar 2024 08:39:04 +0100 Subject: [PATCH] automatically roll deployments on config change --- charts/warpstream-agent/templates/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/warpstream-agent/templates/deployment.yaml b/charts/warpstream-agent/templates/deployment.yaml index 9165f11..5885284 100644 --- a/charts/warpstream-agent/templates/deployment.yaml +++ b/charts/warpstream-agent/templates/deployment.yaml @@ -13,8 +13,10 @@ spec: {{- include "warpstream-agent.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: