From cb1398496dc5b708419b25f44101704aade99ce2 Mon Sep 17 00:00:00 2001 From: francisy Date: Wed, 9 Jun 2021 19:00:32 -0400 Subject: [PATCH] Add hash annotation to apiserver-webhook deployment Add a hash of the dynamic-config configmap to the annotations of the apiserver-webhook pod metadata, so that a chart upgrade will trigger a pod restart if the configmap contents change Change-Id: I9c01b71b128e2bc6a5a07e5aa7ba826a4ffa237e --- charts/apiserver-webhook/templates/deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/apiserver-webhook/templates/deployment.yaml b/charts/apiserver-webhook/templates/deployment.yaml index be74e1cb..d2011a22 100644 --- a/charts/apiserver-webhook/templates/deployment.yaml +++ b/charts/apiserver-webhook/templates/deployment.yaml @@ -123,6 +123,7 @@ spec: {{ dict "envAll" $envAll "podName" "apiserver-webhook" "containerNames" (list "apiserver" "webhook") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }} configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} + dynamic-config-hash: {{ tuple "config-dynamic-config.yaml" . | include "helm-toolkit.utils.hash" }} spec: nodeSelector: {{ .Values.labels.kubernetes_apiserver.node_selector_key }}: {{ .Values.labels.kubernetes_apiserver.node_selector_value }}