Skip to content

Commit

Permalink
fix(helm): Use import_datasources.yaml, if it exists (#14704)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielewood committed Jun 21, 2021
1 parent cd0e03a commit 1948678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/superset/Chart.yaml
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions helm/superset/values.yaml
Expand Up @@ -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
Expand Down

0 comments on commit 1948678

Please sign in to comment.