[stable/airflow]: Added extraInitContainers option (#15690)

Signed-off-by: MahaGamal <mohaamer5@google.com>
This commit is contained in:
Maha Gamal
2019-09-22 02:11:22 -07:00
committed by Kubernetes Prow Robot
parent 9a30980971
commit 0c09a6dde2
4 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Airflow is a platform to programmatically author, schedule and monitor workflows
name: airflow
version: 4.0.9
version: 4.1.0
appVersion: 1.10.4
icon: https://airflow.apache.org/_images/pin_large.png
home: https://airflow.apache.org/
+1
View File
@@ -345,6 +345,7 @@ The following table lists the configurable parameters of the Airflow chart and t
| `airflow.extraEnv` | specify additional environment variables to mount | `{}` |
| `airflow.extraConfigmapMounts` | Additional configMap volume mounts on the airflow pods. | `[]` |
| `airflow.podAnnotations` | annotations for scheduler, worker and web pods | `{}` |
| `airflow.extraInitContainers` | additional Init Containers to run in the scheduler pods | `[]` |
| `airflow.extraContainers` | additional containers to run in the scheduler, worker & web pods | `[]` |
| `airflow.extraVolumeMounts` | additional volumeMounts to the main container in scheduler, worker & web pods | `[]`|
| `airflow.extraVolumes` | additional volumes for the scheduler, worker & web pods | `[]` |
@@ -77,6 +77,12 @@ spec:
mountPath: /keys
{{- end }}
{{- end }}
{{- if and ( .Values.airflow.extraInitContainers ) ( .Values.dags.initContainer.enabled ) }}
{{ toYaml .Values.airflow.extraInitContainers | indent 8 }}
{{- else if and ( .Values.airflow.extraInitContainers ) ( not .Values.dags.initContainer.enabled ) }}
initContainers:
{{ toYaml .Values.airflow.extraInitContainers | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-scheduler
image: {{ .Values.airflow.image.repository }}:{{ .Values.airflow.image.tag }}
+11
View File
@@ -137,6 +137,17 @@ airflow:
podAnnotations: {}
## Example:
## iam.amazonaws.com/role: airflow-Role
extraInitContainers: []
## Additional init containers to run before the Scheduler pods.
## for example, be used to run a sidecar that chown Logs storage .
# - name: volume-mount-hack
# image: busybox
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
# volumeMounts:
# - mountPath: /usr/local/airflow/logs
# name: logs-data
extraContainers: []
## Additional containers to run alongside the Scheduler, Worker and Web pods
## This could, for example, be used to run a sidecar that syncs DAGs from object storage.