[airflow] fix ordering of affinity/psp in charts

Change-Id: I08afee40ac3965adc2bcff7f1a2a21ebb39fb87c
This commit is contained in:
Chris Wedgwood 2021-11-03 14:08:25 -05:00
parent aa99869546
commit 034b906dd6
2 changed files with 2 additions and 2 deletions

View File

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

View File

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