Merge pull request #1773 from wsxiaoys/patch-3

[bitnami/airflow]Add airflow.webserverConfigMap to allow override FAB config.
This commit is contained in:
Sameer Naik
2019-12-27 08:33:52 +05:30
committed by GitHub
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: airflow
version: 4.0.18
version: 4.0.19
appVersion: 1.10.6
description: Apache Airflow is a platform to programmatically author, schedule and monitor workflows.
keywords:
+1
View File
@@ -94,6 +94,7 @@ The following tables lists the configurable parameters of the Kafka chart and th
| `airflow.auth.fernetKey` | Fernet key to secure connections | `nil` |
| `airflow.auth.existingSecret` | Name of an existing secret containing airflow password and fernet key | `nil` |
| `airflow.extraEnvVars` | Extra environment variables to add to airflow web, worker and scheduler pods | `nil` |
| `airflow.webserverConfigMap` | Config map name for ~/airflow/webserver_config.py | `nil` |
| `securityContext.enabled` | Enable security context | `true` |
| `securityContext.fsGroup` | Group ID for the container | `1001` |
| `securityContext.runAsUser` | User ID for the container | `1001` |
@@ -216,6 +216,11 @@ spec:
mountPath: /opt/bitnami/airflow/airflow.cfg
subPath: airflow.cfg
{{- end }}
{{- if .Values.airflow.webserverConfigMap }}
- name: custom-webserver-configuration-file
mountPath: /opt/bitnami/airflow/webserver_config.py
subPath: webserver_config.py
{{- end }}
resources: {{- toYaml .Values.resources | nindent 12 }}
volumes:
{{- if .Files.Glob "files/dags/*.py" }}
@@ -237,3 +242,8 @@ spec:
configMap:
name: {{ .Values.airflow.configurationConfigMap }}
{{- end }}
{{- if .Values.airflow.webserverConfigMap }}
- name: custom-webserver-configuration-file
configMap:
name: {{ .Values.airflow.webserverConfigMap }}
{{- end }}