Skip to content
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

feat: add airflow.extraPodSpec value #806

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
1 change: 1 addition & 0 deletions charts/airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ Parameter | Description | Default
`airflow.defaultTolerations` | default toleration configs for airflow Pods (is overridden by pod-specific values) | `[]`
`airflow.defaultSecurityContext` | default securityContext configs for Pods (is overridden by pod-specific values) | `{fsGroup: 0}`
`airflow.podAnnotations` | extra annotations for airflow Pods | `{}`
`airflow.extraPodSpec` | extra Spec for airflow Pods | `{}`
`airflow.extraPipPackages` | extra pip packages to install in airflow Pods | `[]`
`airflow.protectedPipPackages` | pip packages that are protected from upgrade/downgrade by `extraPipPackages` | `["apache-airflow"]`
`airflow.extraEnv` | extra environment variables for the airflow Pods | `[]`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,7 @@ spec:
- name: scripts
secret:
secretName: {{ include "airflow.fullname" . }}-db-migrations
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/airflow/templates/flower/flower-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,7 @@ spec:
volumes:
{{- $volumes | indent 8 }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,7 @@ spec:
sources:
{{- include "airflow.pgbouncer.certs_volume_sources" . | indent 14 }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,7 @@ spec:
configMap:
name: {{ include "airflow.fullname" . }}-pod-template
{{- end }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/airflow/templates/sync/sync-pools-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,7 @@ spec:
- name: scripts
secret:
secretName: {{ include "airflow.fullname" . }}-sync-pools
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/airflow/templates/sync/sync-users-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,7 @@ spec:
volumes:
{{- $volumes | indent 8 }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,6 @@ spec:
{{- end }}
defaultMode: 0644
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/airflow/templates/worker/worker-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,7 @@ spec:
volumes:
{{- $volumes | indent 8 }}
{{- end }}
{{- if .Values.airflow.extraPodSpec }}
{{- toYaml .Values.airflow.extraPodSpec | nindent 6 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ airflow:
##
podAnnotations: {}

## extra pod Spec for airflow Pods
##
extraPodSpec: {}

## extra pip packages to install in airflow Pods
##
## ____ EXAMPLE _______________
Expand Down
Loading