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:
parent
51b1bb8a7a
commit
90618f549c
|
@ -69,6 +69,8 @@ apiVersion: apps/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: armada-api
|
name: armada-api
|
||||||
|
annotations:
|
||||||
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.pod.replicas.api }}
|
replicas: {{ .Values.pod.replicas.api }}
|
||||||
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
|
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}
|
||||||
|
|
|
@ -25,6 +25,7 @@ metadata:
|
||||||
name: "{{ .Release.Name }}-armada-api-test"
|
name: "{{ .Release.Name }}-armada-api-test"
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": "test-success"
|
"helm.sh/hook": "test-success"
|
||||||
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||||
labels:
|
labels:
|
||||||
{{ tuple $envAll "armada" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
{{ tuple $envAll "armada" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -39,6 +39,8 @@ metadata:
|
||||||
app: helm
|
app: helm
|
||||||
name: tiller
|
name: tiller
|
||||||
name: tiller-deploy
|
name: tiller-deploy
|
||||||
|
annotations:
|
||||||
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
|
Loading…
Reference in New Issue