From 27f181a9d30294030d695b747b2e4560ffbd29be Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Mon, 15 Mar 2021 17:14:55 +0000 Subject: [PATCH] Add configmap-etc-hash to apiserver anchor The apiserver anchor pods already have an annotation to detect changes in the apiserver-bin configmap, but not for apiserver-etc. This change adds the hash annotation, so that the daemonset pods will cycle if a chart upgrade should result in a config change to the apiserver static pod. Change-Id: If3aa1b77ea9a737705b8be5e4938b183e310e265 --- charts/apiserver/templates/daemonset.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/apiserver/templates/daemonset.yaml b/charts/apiserver/templates/daemonset.yaml index ae3ba777..4ec00a7b 100644 --- a/charts/apiserver/templates/daemonset.yaml +++ b/charts/apiserver/templates/daemonset.yaml @@ -44,6 +44,7 @@ spec: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} scheduler.alpha.kubernetes.io/critical-pod: '' configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }} + configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} {{ dict "envAll" $envAll "podName" "kubernetes_apiserver_anchor" "containerNames" (list "anchor") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: {{ dict "envAll" $envAll "application" "kubernetes_apiserver_anchor" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}