Skip to content

Commit

Permalink
other: Provide option to add environment variables to only supersetNo…
Browse files Browse the repository at this point in the history
…de (apache#16627)

* Add env variables for supersetNode in Helm template

* Typo in template

* Removed unnecessary if

* Revert "Removed unnecessary if"

This reverts commit af83568.

* Bumping chart version to 0.3.8

Co-authored-by: Craig Rueda <[email protected]>
  • Loading branch information
2 people authored and Emmanuel Bavoux committed Nov 14, 2021
1 parent 37d706e commit 5d656c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/superset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: [email protected]
url: https://github.com/craig-rueda
version: 0.3.7
version: 0.3.8
dependencies:
- name: postgresql
version: 10.2.0
Expand Down
6 changes: 6 additions & 0 deletions helm/superset/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d656c8

Please sign in to comment.