Skip to content

Commit 487002e

Browse files
feat: add airflow.kubernetesPodTemplate.lifecycle value
Signed-off-by: Lawrence Menyah <[email protected]>
1 parent 420eae2 commit 487002e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

charts/airflow/files/pod_template.kubernetes-helm-yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ spec:
7878
volumeMounts:
7979
{{- $volumeMounts | indent 8 }}
8080
{{- end }}
81+
{{- if .Values.airflow.kubernetesPodTemplate.lifecycle }}
82+
lifecycle:
83+
{{- toYaml .Values.airflow.kubernetesPodTemplate.lifecycle | nindent 8 }}
84+
{{- end }}
8185
{{- if .Values.airflow.kubernetesPodTemplate.extraContainers }}
8286
{{- toYaml .Values.airflow.kubernetesPodTemplate.extraContainers | nindent 4 }}
8387
{{- end }}

charts/airflow/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ airflow:
322322
##
323323
podAnnotations: {}
324324

325+
## run commands after the container starts (postStart) or before the container stops (preStop)
326+
## - spec for container lifecycle
327+
## https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
328+
lifecycle: {}
329+
325330
## the security context for the Pod template
326331
## - spec for PodSecurityContext:
327332
## https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#podsecuritycontext-v1-core

0 commit comments

Comments
 (0)