From 034b906dd6df0f9683dc6808f7ee08f68c9a527b Mon Sep 17 00:00:00 2001 From: Chris Wedgwood Date: Wed, 3 Nov 2021 14:08:25 -0500 Subject: [PATCH] [airflow] fix ordering of affinity/psp in charts Change-Id: I08afee40ac3965adc2bcff7f1a2a21ebb39fb87c --- charts/shipyard/templates/deployment-airflow-scheduler.yaml | 2 +- charts/shipyard/templates/statefulset-airflow-worker.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/shipyard/templates/deployment-airflow-scheduler.yaml b/charts/shipyard/templates/deployment-airflow-scheduler.yaml index 884e3dd0..3cc2a299 100644 --- a/charts/shipyard/templates/deployment-airflow-scheduler.yaml +++ b/charts/shipyard/templates/deployment-airflow-scheduler.yaml @@ -53,8 +53,8 @@ spec: spec: serviceAccountName: {{ $serviceAccountName }} affinity: -{{ dict "envAll" $envAll "application" "airflow_scheduler" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} {{ tuple $envAll "airflow" "scheduler" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} +{{ dict "envAll" $envAll "application" "airflow_scheduler" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} nodeSelector: {{ .Values.labels.airflow.node_selector_key }}: {{ .Values.labels.airflow.node_selector_value }} restartPolicy: Always diff --git a/charts/shipyard/templates/statefulset-airflow-worker.yaml b/charts/shipyard/templates/statefulset-airflow-worker.yaml index 3efe182c..f75ea457 100644 --- a/charts/shipyard/templates/statefulset-airflow-worker.yaml +++ b/charts/shipyard/templates/statefulset-airflow-worker.yaml @@ -90,8 +90,8 @@ spec: spec: serviceAccountName: {{ $serviceAccountName }} affinity: -{{ dict "envAll" $envAll "application" "airflow_worker" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} {{ tuple $envAll "airflow" "worker" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} +{{ dict "envAll" $envAll "application" "airflow_worker" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} nodeSelector: {{ .Values.labels.airflow.node_selector_key }}: {{ .Values.labels.airflow.node_selector_value }} initContainers: