From 3f469dc5b23824a9c805c75203ac8fd4303352f2 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 25 Dec 2019 13:55:44 +0800 Subject: [PATCH 1/4] Add wirflow.webserverConfigMap to allow overide ~/airflow/webserver_config.py --- bitnami/airflow/templates/deployment-web.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bitnami/airflow/templates/deployment-web.yaml b/bitnami/airflow/templates/deployment-web.yaml index 4e56f2207..bac4e32cd 100644 --- a/bitnami/airflow/templates/deployment-web.yaml +++ b/bitnami/airflow/templates/deployment-web.yaml @@ -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 }} From ffe6c850bd92dd30b3ed3f96b16814a1cabd7ee1 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 25 Dec 2019 13:57:00 +0800 Subject: [PATCH 2/4] Update Chart.yaml --- bitnami/airflow/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/airflow/Chart.yaml b/bitnami/airflow/Chart.yaml index 48d78b235..e2c5ef9c3 100644 --- a/bitnami/airflow/Chart.yaml +++ b/bitnami/airflow/Chart.yaml @@ -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: From f3b8cfcb3c09fc6f51c89230601545a204c5cd42 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 25 Dec 2019 14:00:35 +0800 Subject: [PATCH 3/4] Update README.md --- bitnami/airflow/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/bitnami/airflow/README.md b/bitnami/airflow/README.md index c29deeebb..859e302c9 100644 --- a/bitnami/airflow/README.md +++ b/bitnami/airflow/README.md @@ -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` | From 50a51aa6f8d7e930f4314a5551c1085d17aafb8e Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Thu, 26 Dec 2019 11:40:28 +0800 Subject: [PATCH 4/4] Update bitnami/airflow/templates/deployment-web.yaml Co-Authored-By: Sameer Naik --- bitnami/airflow/templates/deployment-web.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/airflow/templates/deployment-web.yaml b/bitnami/airflow/templates/deployment-web.yaml index bac4e32cd..fe9416322 100644 --- a/bitnami/airflow/templates/deployment-web.yaml +++ b/bitnami/airflow/templates/deployment-web.yaml @@ -216,7 +216,7 @@ spec: mountPath: /opt/bitnami/airflow/airflow.cfg subPath: airflow.cfg {{- end }} - {{- if .Values.airflow.webserverConfigMap}} + {{- if .Values.airflow.webserverConfigMap }} - name: custom-webserver-configuration-file mountPath: /opt/bitnami/airflow/webserver_config.py subPath: webserver_config.py