diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index 53e3625c5e1a..25c81adf6bcb 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.5.0 +version: 0.5.1 dependencies: - name: postgresql version: 10.2.0 diff --git a/helm/superset/templates/_helpers.tpl b/helm/superset/templates/_helpers.tpl index 33d6f41b476d..579fd5a7eae6 100644 --- a/helm/superset/templates/_helpers.tpl +++ b/helm/superset/templates/_helpers.tpl @@ -98,5 +98,13 @@ RESULTS_BACKEND = RedisCache( {{ tpl $value $ }} {{- end }} {{- end }} +{{ if .Values.configOverridesFiles }} +# Overrides from files +{{- $files := .Files }} +{{- range $key, $value := .Values.configOverridesFiles }} +# {{ $key }} +{{ $files.Get $value }} +{{- end }} +{{- end }} {{- end }} diff --git a/helm/superset/templates/deployment-beat.yaml b/helm/superset/templates/deployment-beat.yaml index 512a7a25462a..c014959c2a05 100644 --- a/helm/superset/templates/deployment-beat.yaml +++ b/helm/superset/templates/deployment-beat.yaml @@ -44,6 +44,7 @@ spec: checksum/extraSecrets: {{ .Values.extraSecrets | toYaml | sha256sum }} checksum/extraSecretEnv: {{ .Values.extraSecretEnv | toYaml | sha256sum }} checksum/configOverrides: {{ .Values.configOverrides | toYaml | sha256sum }} + checksum/configOverridesFiles: {{ .Values.configOverridesFiles | toYaml | sha256sum }} {{ if .Values.supersetCeleryBeat.forceReload }} # Optionally force the thing to reload force-reload: {{ randAlphaNum 5 | quote }} diff --git a/helm/superset/templates/deployment-worker.yaml b/helm/superset/templates/deployment-worker.yaml index 9ada4352b88a..e91601337b21 100644 --- a/helm/superset/templates/deployment-worker.yaml +++ b/helm/superset/templates/deployment-worker.yaml @@ -42,6 +42,7 @@ spec: checksum/extraSecrets: {{ .Values.extraSecrets | toYaml | sha256sum }} checksum/extraSecretEnv: {{ .Values.extraSecretEnv | toYaml | sha256sum }} checksum/configOverrides: {{ .Values.configOverrides | toYaml | sha256sum }} + checksum/configOverridesFiles: {{ .Values.configOverridesFiles | toYaml | sha256sum }} {{ if .Values.supersetWorker.forceReload }} # Optionally force the thing to reload force-reload: {{ randAlphaNum 5 | quote }} diff --git a/helm/superset/templates/deployment.yaml b/helm/superset/templates/deployment.yaml index 4040d0a51c6c..b5f039481221 100644 --- a/helm/superset/templates/deployment.yaml +++ b/helm/superset/templates/deployment.yaml @@ -45,6 +45,7 @@ spec: checksum/extraSecrets: {{ .Values.extraSecrets | toYaml | sha256sum }} checksum/extraSecretEnv: {{ .Values.extraSecretEnv | toYaml | sha256sum }} checksum/configOverrides: {{ .Values.configOverrides | toYaml | sha256sum }} + checksum/configOverridesFiles: {{ .Values.configOverridesFiles | toYaml | sha256sum }} {{- if .Values.supersetNode.forceReload }} # Optionally force the thing to reload force-reload: {{ randAlphaNum 5 | quote }} diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index 059a8c90e203..03ddc0d61e4b 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -143,6 +143,11 @@ configOverrides: {} # AUTH_USER_REGISTRATION = True # # The default user self registration role # AUTH_USER_REGISTRATION_ROLE = "Admin" +# Same as above but the values are files +configOverridesFiles: + # extend_timeout: extend_timeout.py + # enable_oauth: enable_oauth.py + configMountPath: "/app/pythonpath"