peterpans2013 commented on issue #35550:
URL: https://github.com/apache/superset/issues/35550#issuecomment-3931791572

   @Devika7733 Have you tried this:
   ```
   initscript: |-
       #!/bin/sh
       set -eu
       echo "Upgrading DB schema..."
       superset db upgrade
       echo "Initializing roles..."
       superset init
       {{ if .Values.init.createAdmin }}
       echo "Creating admin user..."
       superset fab create-admin \
                       --username {{ .Values.init.adminUser.username }} \
                       --firstname {{ .Values.init.adminUser.firstname }} \
                       --lastname {{ .Values.init.adminUser.lastname }} \
                       --email {{ .Values.init.adminUser.email }} \
                       --password ${ADMIN_PASSWORD} \
                       || true
       {{- end }}
       {{ if .Values.init.loadExamples }}
       echo "Loading examples..."
       superset load_examples
       {{- end }}
       if [ -f "{{ .Values.extraConfigMountPath }}/import_datasources.yaml" ]; 
then
         echo "Importing database connections.... "
         superset import_datasources -p {{ .Values.extraConfigMountPath 
}}/import_datasources.yaml
       fi
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to