Browse Source

Add release uuid to pods and rc objects (shipyard)

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: I75fc7516e0d32e7e0df0fecf1f9bec0e234adfcc
changes/49/602749/1
Matt McEuen 4 years ago
parent
commit
ae688e7fb4
  1. 2
      charts/shipyard/templates/deployment-airflow-flower.yaml
  2. 2
      charts/shipyard/templates/deployment-airflow-scheduler.yaml
  3. 2
      charts/shipyard/templates/deployment-airflow-web.yaml
  4. 2
      charts/shipyard/templates/deployment-shipyard.yaml
  5. 2
      charts/shipyard/templates/job-airflow-db-init.yaml
  6. 2
      charts/shipyard/templates/job-airflow-db-sync.yaml
  7. 2
      charts/shipyard/templates/job-shipyard-db-init.yaml
  8. 2
      charts/shipyard/templates/job-shipyard-db-sync.yaml
  9. 2
      charts/shipyard/templates/statefulset-airflow-worker.yaml
  10. 1
      charts/shipyard/templates/tests/test-shipyard-api.yaml

2
charts/shipyard/templates/deployment-airflow-flower.yaml

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

2
charts/shipyard/templates/deployment-airflow-scheduler.yaml

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

2
charts/shipyard/templates/deployment-airflow-web.yaml

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

2
charts/shipyard/templates/deployment-shipyard.yaml

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

2
charts/shipyard/templates/job-airflow-db-init.yaml

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

2
charts/shipyard/templates/job-airflow-db-sync.yaml

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

2
charts/shipyard/templates/job-shipyard-db-init.yaml

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

2
charts/shipyard/templates/job-shipyard-db-sync.yaml

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

2
charts/shipyard/templates/statefulset-airflow-worker.yaml

@ -55,6 +55,8 @@ apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: airflow-worker
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
spec:
serviceName: {{ tuple "airflow_worker" "discovery" $envAll | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
podManagementPolicy: "Parallel"

1
charts/shipyard/templates/tests/test-shipyard-api.yaml

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

Loading…
Cancel
Save