From 7586e479a97184b11fc3fb7692547ee5ebfff645 Mon Sep 17 00:00:00 2001 From: William Gan <87046728+dd-willgan@users.noreply.github.com> Date: Fri, 17 Sep 2021 12:03:29 -0700 Subject: [PATCH] other: Provide option to add environment variables to only supersetNode (#16627) * Add env variables for supersetNode in Helm template * Typo in template * Removed unnecessary if * Revert "Removed unnecessary if" This reverts commit af83568fb875faee95561e6f6e4c782727b0c97d. * Bumping chart version to 0.3.8 Co-authored-by: Craig Rueda --- helm/superset/Chart.yaml | 2 +- helm/superset/templates/deployment.yaml | 6 ++++++ helm/superset/values.yaml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index ffc75f051d..c1a7ca7478 100644 --- a/helm/superset/Chart.yaml +++ b/helm/superset/Chart.yaml @@ -22,7 +22,7 @@ maintainers: - name: craig-rueda email: craig@craigrueda.com url: https://github.com/craig-rueda -version: 0.3.7 +version: 0.3.8 dependencies: - name: postgresql version: 10.2.0 diff --git a/helm/superset/templates/deployment.yaml b/helm/superset/templates/deployment.yaml index 72a630327a..63ca5d712f 100644 --- a/helm/superset/templates/deployment.yaml +++ b/helm/superset/templates/deployment.yaml @@ -82,6 +82,12 @@ spec: value: {{ $value | quote }} {{- end }} {{- end }} + {{- if .Values.supersetNode.env }} + {{- range $key, $value := .Values.supersetNode.env }} + - name: {{ $key | quote}} + value: {{ $value | quote }} + {{- end }} + {{- end }} envFrom: - secretRef: name: {{ tpl .Values.envFromSecret . | quote }} diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index fc427d2a78..f1ec768e24 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -207,6 +207,7 @@ supersetNode: db_user: superset db_pass: superset db_name: superset + env: {} forceReload: false # If true, forces deployment to reload on each upgrade initContainers: - name: wait-for-postgres