mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
feat(helm): Make local admin optional (#14703)
* Make local admin optional * fix for linting
This commit is contained in:
parent
ffdbcbd16e
commit
9282c58654
@ -239,6 +239,7 @@ init:
|
|||||||
- ". {{ .Values.configMountPath }}/superset_bootstrap.sh; . {{ .Values.configMountPath }}/superset_init.sh"
|
- ". {{ .Values.configMountPath }}/superset_bootstrap.sh; . {{ .Values.configMountPath }}/superset_init.sh"
|
||||||
enabled: true
|
enabled: true
|
||||||
loadExamples: false
|
loadExamples: false
|
||||||
|
createAdmin: true
|
||||||
adminUser:
|
adminUser:
|
||||||
username: admin
|
username: admin
|
||||||
firstname: Superset
|
firstname: Superset
|
||||||
@ -259,6 +260,7 @@ init:
|
|||||||
superset db upgrade
|
superset db upgrade
|
||||||
echo "Initializing roles..."
|
echo "Initializing roles..."
|
||||||
superset init
|
superset init
|
||||||
|
{{ if .Values.init.createAdmin }}
|
||||||
echo "Creating admin user..."
|
echo "Creating admin user..."
|
||||||
superset fab create-admin \
|
superset fab create-admin \
|
||||||
--username {{ .Values.init.adminUser.username }} \
|
--username {{ .Values.init.adminUser.username }} \
|
||||||
@ -267,6 +269,7 @@ init:
|
|||||||
--email {{ .Values.init.adminUser.email }} \
|
--email {{ .Values.init.adminUser.email }} \
|
||||||
--password {{ .Values.init.adminUser.password }} \
|
--password {{ .Values.init.adminUser.password }} \
|
||||||
|| true
|
|| true
|
||||||
|
{{- end }}
|
||||||
{{ if .Values.init.loadExamples }}
|
{{ if .Values.init.loadExamples }}
|
||||||
echo "Loading examples..."
|
echo "Loading examples..."
|
||||||
superset load_examples
|
superset load_examples
|
||||||
|
Loading…
Reference in New Issue
Block a user