1- {{- if and (.Values.airflow. dags.persistence.enabled .Values.airflow .dags.gitSync.enabled) }}
2- {{- $podNodeSelector := include "airflow.podNodeSelector" (dict "Release" .Release "Values" .Values "nodeSelector" .Values.airflow. dags.gitSync.nodeSelector) }}
3- {{- $podAffinity := include "airflow.podAffinity" (dict "Release" .Release "Values" .Values "affinity" .Values.airflow. dags.gitSync.affinity) }}
4- {{- $podTolerations := include "airflow.podTolerations" (dict "Release" .Release "Values" .Values "tolerations" .Values.airflow. dags.gitSync.tolerations) }}
5- {{- $podSecurityContext := include "airflow.podSecurityContext" (dict "Release" .Release "Values" .Values "securityContext" .Values.airflow. dags.gitSync.securityContext) }}
1+ {{- if and (.Values.dags.persistence.enabled) ( .Values.dags.gitSync.enabled) }}
2+ {{- $podNodeSelector := include "airflow.podNodeSelector" (dict "Release" .Release "Values" .Values "nodeSelector" .Values.dags.gitSync.nodeSelector) }}
3+ {{- $podAffinity := include "airflow.podAffinity" (dict "Release" .Release "Values" .Values "affinity" .Values.dags.gitSync.affinity) }}
4+ {{- $podTolerations := include "airflow.podTolerations" (dict "Release" .Release "Values" .Values "tolerations" .Values.dags.gitSync.tolerations) }}
5+ {{- $podSecurityContext := include "airflow.podSecurityContext" (dict "Release" .Release "Values" .Values "securityContext" .Values.dags.gitSync.securityContext) }}
66{{- $volumes := include "volumes.dags" (dict "Values" .Values ) }}
77apiVersion : apps/v1
88kind : Deployment
@@ -14,12 +14,12 @@ metadata:
1414 chart : {{ include "airflow.labels.chart" . }}
1515 release : {{ .Release.Name }}
1616 heritage : {{ .Release.Service }}
17- {{- if .Values.airflow. dags.gitSync.labels }}
18- {{- toYaml .Values.airflow. dags.gitSync.labels | nindent 4 }}
17+ {{- if .Values.dags.gitSync.labels }}
18+ {{- toYaml .Values.dags.gitSync.labels | nindent 4 }}
1919 {{- end }}
20- {{- if .Values.airflow. dags.gitSync.annotations }}
20+ {{- if .Values.dags.gitSync.annotations }}
2121 annotations :
22- {{- toYaml .Values.airflow. dags.gitSync.annotations | nindent 4 }}
22+ {{- toYaml .Values.dags.gitSync.annotations | nindent 4 }}
2323 {{- end }}
2424spec :
2525 replicas : 1
@@ -42,18 +42,18 @@ spec:
4242 {{- if .Values.airflow.podAnnotations }}
4343 {{- toYaml .Values.airflow.podAnnotations | nindent 8 }}
4444 {{- end }}
45- {{- if .Values.airflow. dags.gitSync.podAnnotations }}
46- {{- toYaml .Values.airflow. dags.gitSync.podAnnotations | nindent 8 }}
45+ {{- if .Values.dags.gitSync.podAnnotations }}
46+ {{- toYaml .Values.dags.gitSync.podAnnotations | nindent 8 }}
4747 {{- end }}
48- {{- if .Values.airflow. dags.gitSync.safeToEvict }}
48+ {{- if .Values.dags.gitSync.safeToEvict }}
4949 cluster-autoscaler.kubernetes.io/safe-to-evict : " true"
5050 {{- end }}
5151 labels :
5252 app : {{ include "airflow.labels.app" . }}
5353 component : dags-git-sync
5454 release : {{ .Release.Name }}
55- {{- if .Values.airflow. dags.gitSync.podLabels }}
56- {{- toYaml .Values.airflow. dags.gitSync.podLabels | nindent 8 }}
55+ {{- if .Values.dags.gitSync.podLabels }}
56+ {{- toYaml .Values.dags.gitSync.podLabels | nindent 8 }}
5757 {{- end }}
5858 spec :
5959 restartPolicy : Always
0 commit comments