Skip to content

Commit

Permalink
feat: add airflow.kubernetesPodTemplate.lifecycle value
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence Menyah committed Oct 5, 2022
1 parent 420eae2 commit 64c91db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/airflow/files/pod_template.kubernetes-helm-yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ spec:
volumeMounts:
{{- $volumeMounts | indent 8 }}
{{- end }}
{{- if .Values.airflow.kubernetesPodTemplate.lifecycle }}
lifecycle:
{{- toYaml .Values.airflow.kubernetesPodTemplate.lifecycle | nindent 8 }}
{{- end }}
{{- if .Values.airflow.kubernetesPodTemplate.extraContainers }}
{{- toYaml .Values.airflow.kubernetesPodTemplate.extraContainers | nindent 4 }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions charts/airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ airflow:
##
podAnnotations: {}

## run commands after the container starts (postStart) or before the container stops (preStop)
## - spec for container lifecycle
## https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
lifecycle: {}

## the security context for the Pod template
## - spec for PodSecurityContext:
## https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#podsecuritycontext-v1-core
Expand Down

0 comments on commit 64c91db

Please sign in to comment.