8000 feat: add `airflow.kubernetesPodTemplate.lifecycle` value by iSWATxJOKERi · Pull Request #653 · airflow-helm/charts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add airflow.kubernetesPodTemplate.lifecycle value #653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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