diff --git a/helm/superset/templates/deployment-beat.yaml b/helm/superset/templates/deployment-beat.yaml index dc147d926..e926b0abf 100644 --- a/helm/superset/templates/deployment-beat.yaml +++ b/helm/superset/templates/deployment-beat.yaml @@ -37,6 +37,7 @@ spec: checksum/superset_config.py: {{ include "superset-config" . | sha256sum }} checksum/connections: {{ .Values.supersetNode.connections | toYaml | sha256sum }} checksum/extraConfigs: {{ .Values.extraConfigs | toYaml | sha256sum }} + checksum/extraSecrets: {{ .Values.extraSecrets | toYaml | sha256sum }} checksum/extraSecretEnv: {{ .Values.extraSecretEnv | toYaml | sha256sum }} checksum/configOverrides: {{ .Values.configOverrides | toYaml | sha256sum }} {{ if .Values.supersetCeleryBeat.forceReload }} diff --git a/helm/superset/templates/deployment-worker.yaml b/helm/superset/templates/deployment-worker.yaml index 894fbb01d..f89c98c94 100644 --- a/helm/superset/templates/deployment-worker.yaml +++ b/helm/superset/templates/deployment-worker.yaml @@ -35,6 +35,7 @@ spec: checksum/superset_config.py: {{ include "superset-config" . | sha256sum }} checksum/connections: {{ .Values.supersetNode.connections | toYaml | sha256sum }} checksum/extraConfigs: {{ .Values.extraConfigs | toYaml | sha256sum }} + checksum/extraSecrets: {{ .Values.extraSecrets | toYaml | sha256sum }} checksum/extraSecretEnv: {{ .Values.extraSecretEnv | toYaml | sha256sum }} checksum/configOverrides: {{ .Values.configOverrides | toYaml | sha256sum }} {{ if .Values.supersetWorker.forceReload }} diff --git a/helm/superset/templates/deployment.yaml b/helm/superset/templates/deployment.yaml index 499b5f214..efeea096a 100644 --- a/helm/superset/templates/deployment.yaml +++ b/helm/superset/templates/deployment.yaml @@ -38,6 +38,7 @@ spec: checksum/superset_bootstrap.sh: {{ include "superset-bootstrap" . | sha256sum }} checksum/connections: {{ .Values.supersetNode.connections | toYaml | sha256sum }} checksum/extraConfigs: {{ .Values.extraConfigs | toYaml | sha256sum }} + checksum/extraSecrets: {{ .Values.extraSecrets | toYaml | sha256sum }} checksum/extraSecretEnv: {{ .Values.extraSecretEnv | toYaml | sha256sum }} checksum/configOverrides: {{ .Values.configOverrides | toYaml | sha256sum }} {{- if .Values.supersetNode.forceReload }} diff --git a/helm/superset/templates/secret-superset-config.yaml b/helm/superset/templates/secret-superset-config.yaml index a5f5cff6b..d8bd4f7ae 100644 --- a/helm/superset/templates/secret-superset-config.yaml +++ b/helm/superset/templates/secret-superset-config.yaml @@ -31,3 +31,10 @@ stringData: {{- tpl .Values.init.initscript . | nindent 4 }} superset_bootstrap.sh: | {{- include "superset-bootstrap" . | nindent 4 }} + +{{- if .Values.extraSecrets }} +{{- range $path, $config := .Values.extraSecrets }} + {{ $path }}: | +{{- tpl $config $ | nindent 4 -}} +{{- end -}} +{{- end -}} diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index 02744a931..19a6d799c 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -65,6 +65,10 @@ extraConfigs: {} # sqlalchemy_uri: example://example-db.local # tables: [] + +extraSecrets: {} + + # A dictionary of overrides to append at the end of superset_config.py - the name does not matter # WARNING: the order is not guaranteed configOverrides: {}