Add configmap-hash annotations for etcd
Adds configmap-hash annotations to the etcd anchor daemonset for configmap-bin and configmap-etc. Does not add hash annotations for configmap-certs or secret-keys, with the thought that if certs or keys are changed, some manual intervention might be warranted, and restarting the anchors automatically might not be desirable. Change-Id: I22ff8fafa5d37c10138ddaa4095174b25fc087d8
This commit is contained in:
parent
a75a54569c
commit
4aab698486
|
@ -42,6 +42,12 @@ spec:
|
|||
{{ dict "envAll" $envAll "podName" "etcd-anchor" "containerNames" (list "etcdctl") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
scheduler.alpha.kubernetes.io/critical-pod: ''
|
||||
{{- if .Values.manifests.configmap_bin }}
|
||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
{{- end }}
|
||||
{{- if .Values.manifests.configmap_etc }}
|
||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{ $labels | indent 8 }}
|
||||
spec:
|
||||
|
|
Loading…
Reference in New Issue