From 19486780a2e169c119458916419d98eace2830c6 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Mon, 21 Jun 2021 16:53:39 -0700 Subject: [PATCH] fix(helm): Use import_datasources.yaml, if it exists (#14704) --- helm/superset/Chart.yaml | 2 +- helm/superset/values.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index 1e9e2f438a..3120db4fd4 100644 --- a/helm/superset/Chart.yaml +++ b/helm/superset/Chart.yaml @@ -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 diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index d357f6d0a4..cb9d117ce3 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -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