From 6f608fd8cdee1b7e041b3c854dfeecc0a7970e5e Mon Sep 17 00:00:00 2001 From: "Kumar, Nishant(nk613n)" Date: Thu, 6 Jun 2019 00:30:44 -0400 Subject: [PATCH] Add release uuid annotation to POD spec Change-Id: I1de990aa377cff5fcf9ce3918c22e81021521d44 --- charts/armada/templates/deployment-api.yaml | 1 + charts/tiller/templates/deployment-tiller.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/charts/armada/templates/deployment-api.yaml b/charts/armada/templates/deployment-api.yaml index 9d3bff45..750614aa 100644 --- a/charts/armada/templates/deployment-api.yaml +++ b/charts/armada/templates/deployment-api.yaml @@ -79,6 +79,7 @@ spec: labels: {{ tuple $envAll "armada" "api" | include "helm-toolkit.snippets.kubernetes_metadata_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/tiller/templates/deployment-tiller.yaml b/charts/tiller/templates/deployment-tiller.yaml index 2607f9a0..379049ed 100644 --- a/charts/tiller/templates/deployment-tiller.yaml +++ b/charts/tiller/templates/deployment-tiller.yaml @@ -58,6 +58,8 @@ spec: app: helm name: tiller {{ tuple $envAll "tiller" "deploy" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} + annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} spec: serviceAccountName: {{ $serviceAccountName }} containers: