Skip to content

Commit

Permalink
feat: Make initial user configurable in helm chart (apache#12862)
Browse files Browse the repository at this point in the history
* Make initial user configurable in helm chart

* Update helm/superset/values.yaml

Co-authored-by: Amit Miran <47772523+amitmiran137@users.noreply.github.com>

* Update helm/superset/values.yaml

Co-authored-by: Amit Miran <47772523+amitmiran137@users.noreply.github.com>

Co-authored-by: Craig Rueda <craig@craigrueda.com>
Co-authored-by: Amit Miran <47772523+amitmiran137@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 20, 2021
1 parent 1a67f15 commit daefebb
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ init:
- ". {{ .Values.configMountPath }}/superset_bootstrap.sh; . {{ .Values.configMountPath }}/superset_init.sh"
enabled: true
loadExamples: false
adminUser:
username: admin
firstname: Superset
lastname: Admin
email: admin@superset.com
password: admin
initContainers:
- name: wait-for-postgres
image: busybox:latest
Expand All @@ -216,11 +222,12 @@ init:
superset init
echo "Creating admin user..."
superset fab create-admin \
--username admin \
--firstname Superset \
--lastname Admin \
--email admin@superset.com \
--password admin || true
--username {{ .Values.init.adminUser.username }} \
--firstname {{ .Values.init.adminUser.firstname }} \
--lastname {{ .Values.init.adminUser.lastname }} \
--email {{ .Values.init.adminUser.email }} \
--password {{ .Values.init.adminUser.password }} \
|| true
{{ if .Values.init.loadExamples }}
echo "Loading examples..."
superset load_examples
Expand Down

0 comments on commit daefebb

Please sign in to comment.