fix(helm): Use import_datasources.yaml, if it exists (#14704)

This commit is contained in:
Daniel Wood 2021-06-21 16:53:39 -07:00 committed by GitHub
parent cd0e03a57f
commit 19486780a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: craig@craigrueda.com
url: https://github.com/craig-rueda
version: 0.1.5
version: 0.1.6
dependencies:
- name: postgresql
version: 10.2.0

View File

@ -299,6 +299,10 @@ init:
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
##
## Configuration values for the postgresql dependency.
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md