From 75d3a86234c724f978b6ecaa07b424d516e5d62a Mon Sep 17 00:00:00 2001 From: "Kumar, Nishant(nk613n)" Date: Wed, 19 Jun 2019 13:39:40 -0400 Subject: [PATCH] Add release uuid annotation to POD spec Change-Id: Id4a96de7da9233589b54217e04a346281eaea68c --- charts/controller_manager/templates/daemonset.yaml | 1 + charts/coredns/templates/deployment.yaml | 1 + charts/etcd/templates/daemonset-anchor.yaml | 1 + charts/haproxy/templates/daemonset.yaml | 1 + charts/promenade/templates/deployment-api.yaml | 1 + charts/proxy/templates/daemonset.yaml | 1 + charts/scheduler/templates/sched-anchor.yaml | 1 + 7 files changed, 7 insertions(+) diff --git a/charts/controller_manager/templates/daemonset.yaml b/charts/controller_manager/templates/daemonset.yaml index 0b6efac3..c18669ff 100644 --- a/charts/controller_manager/templates/daemonset.yaml +++ b/charts/controller_manager/templates/daemonset.yaml @@ -38,6 +38,7 @@ spec: labels: {{ $labels | indent 8 }} annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} 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" }} diff --git a/charts/coredns/templates/deployment.yaml b/charts/coredns/templates/deployment.yaml index 3d182cbe..6cb3c11e 100644 --- a/charts/coredns/templates/deployment.yaml +++ b/charts/coredns/templates/deployment.yaml @@ -54,6 +54,7 @@ spec: {{ $labels | indent 8 }} {{ $envAll.Values.service.name }}: enabled annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} configmap-bin-hash: {{ tuple "configmap-bin.yaml" $envAll | include "helm-toolkit.utils.hash" }} configmap-etc-hash: {{ tuple "configmap-etc.yaml" $envAll | include "helm-toolkit.utils.hash" }} spec: diff --git a/charts/etcd/templates/daemonset-anchor.yaml b/charts/etcd/templates/daemonset-anchor.yaml index 9b8eb01b..5ff68f0a 100644 --- a/charts/etcd/templates/daemonset-anchor.yaml +++ b/charts/etcd/templates/daemonset-anchor.yaml @@ -39,6 +39,7 @@ spec: template: metadata: annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} scheduler.alpha.kubernetes.io/critical-pod: '' labels: {{ $labels | indent 8 }} diff --git a/charts/haproxy/templates/daemonset.yaml b/charts/haproxy/templates/daemonset.yaml index aaa2a28f..448fafff 100644 --- a/charts/haproxy/templates/daemonset.yaml +++ b/charts/haproxy/templates/daemonset.yaml @@ -35,6 +35,7 @@ spec: labels: {{ $labels | indent 8 }} annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} scheduler.alpha.kubernetes.io/critical-pod: '' spec: {{ dict "envAll" $envAll "application" "haproxy_anchor" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} diff --git a/charts/promenade/templates/deployment-api.yaml b/charts/promenade/templates/deployment-api.yaml index c3769c9c..2c0f1ffb 100644 --- a/charts/promenade/templates/deployment-api.yaml +++ b/charts/promenade/templates/deployment-api.yaml @@ -39,6 +39,7 @@ spec: labels: {{ $labels | indent 8 }} annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | 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" }} spec: diff --git a/charts/proxy/templates/daemonset.yaml b/charts/proxy/templates/daemonset.yaml index f5af0de3..8a7badfa 100644 --- a/charts/proxy/templates/daemonset.yaml +++ b/charts/proxy/templates/daemonset.yaml @@ -36,6 +36,7 @@ spec: labels: {{ $labels | indent 8 }} annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} scheduler.alpha.kubernetes.io/critical-pod: '' spec: hostNetwork: true diff --git a/charts/scheduler/templates/sched-anchor.yaml b/charts/scheduler/templates/sched-anchor.yaml index c816566a..467ba910 100644 --- a/charts/scheduler/templates/sched-anchor.yaml +++ b/charts/scheduler/templates/sched-anchor.yaml @@ -33,6 +33,7 @@ spec: template: metadata: annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} 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" }}