From 90618f549c1f6d7741b11dc5c4898f3c6d536895 Mon Sep 17 00:00:00 2001 From: Matt McEuen Date: Fri, 14 Sep 2018 15:23:56 -0500 Subject: [PATCH] Add release uuid to pods and rc objects This PS adds the ability to attach a release uuid to pods and rc objects as desired. This can be used, for example, to force an artificial manifest change in CICD scenarios, for upgradability testing purposes. Change-Id: I77147ca778d70ee6337c609185bbe421c040376a --- charts/armada/templates/deployment-api.yaml | 2 ++ charts/armada/templates/tests/test-armada-api.yaml | 1 + charts/tiller/templates/deployment-tiller.yaml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/charts/armada/templates/deployment-api.yaml b/charts/armada/templates/deployment-api.yaml index 1fbbb32a..1ce46f14 100644 --- a/charts/armada/templates/deployment-api.yaml +++ b/charts/armada/templates/deployment-api.yaml @@ -69,6 +69,8 @@ apiVersion: apps/v1beta1 kind: Deployment metadata: name: armada-api + annotations: + {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} spec: replicas: {{ .Values.pod.replicas.api }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} diff --git a/charts/armada/templates/tests/test-armada-api.yaml b/charts/armada/templates/tests/test-armada-api.yaml index ffb6eace..384b141e 100644 --- a/charts/armada/templates/tests/test-armada-api.yaml +++ b/charts/armada/templates/tests/test-armada-api.yaml @@ -25,6 +25,7 @@ metadata: name: "{{ .Release.Name }}-armada-api-test" annotations: "helm.sh/hook": "test-success" + {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} labels: {{ tuple $envAll "armada" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: diff --git a/charts/tiller/templates/deployment-tiller.yaml b/charts/tiller/templates/deployment-tiller.yaml index 24a6ecc2..a7711891 100644 --- a/charts/tiller/templates/deployment-tiller.yaml +++ b/charts/tiller/templates/deployment-tiller.yaml @@ -39,6 +39,8 @@ metadata: app: helm name: tiller name: tiller-deploy + annotations: + {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} spec: replicas: 1 selector: