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
This commit is contained in:
Matt McEuen 2018-09-14 15:23:56 -05:00
parent 51b1bb8a7a
commit 90618f549c
3 changed files with 5 additions and 0 deletions

View File

@ -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 }}

View File

@ -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:

View File

@ -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: