You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ta...@apache.org on 2021/06/21 23:54:34 UTC
[superset] branch master updated: fix(helm): Use
import_datasources.yaml, if it exists (#14704)
This is an automated email from the ASF dual-hosted git repository.
tai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 1948678 fix(helm): Use import_datasources.yaml, if it exists (#14704)
1948678 is described below
commit 19486780a2e169c119458916419d98eace2830c6
Author: Daniel Wood <da...@woods.us>
AuthorDate: Mon Jun 21 16:53:39 2021 -0700
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 1e9e2f4..3120db4 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 d357f6d..cb9d117 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