From ab860e0dac5ba7af36e23d943f4fb3bcd10eb5dc Mon Sep 17 00:00:00 2001 From: Edward Klesel Date: Wed, 28 Feb 2024 11:46:47 +0000 Subject: [PATCH] Add configmap checksum to deployment annotations --- dist/charts/ping-exporter/templates/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/charts/ping-exporter/templates/deployment.yaml b/dist/charts/ping-exporter/templates/deployment.yaml index 4d544ea..ea87225 100644 --- a/dist/charts/ping-exporter/templates/deployment.yaml +++ b/dist/charts/ping-exporter/templates/deployment.yaml @@ -13,8 +13,9 @@ spec: {{- include "ping_exporter.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: