Merge "Add release uuid to pods and rc objects (drydock)"

This commit is contained in:
Zuul 2018-10-04 21:27:18 +00:00 committed by Gerrit Code Review
commit c38a38fa4c
6 changed files with 9 additions and 1 deletions

View File

@ -22,6 +22,8 @@ apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: drydock-api
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
spec:
replicas: {{ .Values.replicas.drydock }}
{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }}

View File

@ -23,6 +23,8 @@ apiVersion: batch/v1
kind: Job
metadata:
name: drydock-db-init
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
spec:
template:
metadata:

View File

@ -23,6 +23,8 @@ apiVersion: batch/v1
kind: Job
metadata:
name: drydock-db-sync
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
spec:
template:
metadata:

View File

@ -24,6 +24,7 @@ metadata:
name: "{{ .Release.Name }}-api-test"
annotations:
"helm.sh/hook": "test-success"
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
labels:
{{ tuple $envAll "drydock" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec:

View File

@ -25,6 +25,7 @@ metadata:
name: "{{ .Release.Name }}-auth-test"
annotations:
helm.sh/hook: "test-failure"
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
labels:
{{ tuple $envAll "drydock" "auth-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec:

View File

@ -18,7 +18,7 @@
HELM=$1
HTK_REPO=${HTK_REPO:-"https://github.com/openstack/openstack-helm-infra"}
HTK_PATH=${HTK_PATH:-""}
HTK_STABLE_COMMIT=${HTK_COMMIT:-"274b230dcc8960af4fe44a871addcb5aacef3dba"}
HTK_STABLE_COMMIT=${HTK_COMMIT:-"2fce7e821201a5f578331370703e164d5a932fcc"}
DEP_UP_LIST=${DEP_UP_LIST:-"drydock"}
BUILD_DIR=${BUILD_DIR:-$(mktemp -d)}