You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by cr...@apache.org on 2023/10/31 02:20:02 UTC

(superset) branch master updated: feat(helm): Add option to deploy extra containers to init job (#25783)

This is an automated email from the ASF dual-hosted git repository.

craigrueda 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 0f01d9b08f feat(helm): Add option to deploy extra containers to init job (#25783)
0f01d9b08f is described below

commit 0f01d9b08f5c5b5cb21d2e48caeb1a7632fbd16a
Author: Tom Murphy <to...@limepay.com.au>
AuthorDate: Tue Oct 31 13:19:55 2023 +1100

    feat(helm): Add option to deploy extra containers to init job (#25783)
---
 helm/superset/Chart.yaml              | 2 +-
 helm/superset/README.md               | 3 ++-
 helm/superset/templates/init-job.yaml | 3 +++
 helm/superset/values.yaml             | 2 ++
 4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml
index 9467646fbf..1eb7b5df1b 100644
--- a/helm/superset/Chart.yaml
+++ b/helm/superset/Chart.yaml
@@ -29,7 +29,7 @@ maintainers:
   - name: craig-rueda
     email: craig@craigrueda.com
     url: https://github.com/craig-rueda
-version: 0.10.11
+version: 0.10.12
 dependencies:
   - name: postgresql
     version: 12.1.6
diff --git a/helm/superset/README.md b/helm/superset/README.md
index e6f66bde6c..7abeccec9f 100644
--- a/helm/superset/README.md
+++ b/helm/superset/README.md
@@ -23,7 +23,7 @@ NOTE: This file is generated by helm-docs: https://github.com/norwoodj/helm-docs
 
 # superset
 
-![Version: 0.10.11](https://img.shields.io/badge/Version-0.10.11-informational?style=flat-square)
+![Version: 0.10.12](https://img.shields.io/badge/Version-0.10.12-informational?style=flat-square)
 
 Apache Superset is a modern, enterprise-ready business intelligence web application
 
@@ -91,6 +91,7 @@ helm install my-superset superset/superset
 | init.containerSecurityContext | object | `{}` |  |
 | init.createAdmin | bool | `true` |  |
 | init.enabled | bool | `true` |  |
+| init.extraContainers | list | `[]` | Launch additional containers into init job pod |
 | init.initContainers | list | a container waiting for postgres | List of initContainers |
 | init.initscript | string | a script to create admin user and initialize roles | A Superset init script |
 | init.jobAnnotations."helm.sh/hook" | string | `"post-install,post-upgrade"` |  |
diff --git a/helm/superset/templates/init-job.yaml b/helm/superset/templates/init-job.yaml
index da83f7f95d..d1b0eff7a8 100644
--- a/helm/superset/templates/init-job.yaml
+++ b/helm/superset/templates/init-job.yaml
@@ -83,6 +83,9 @@ spec:
           {{- end }}
         command: {{  tpl (toJson .Values.init.command) . }}
         resources: {{- toYaml .Values.init.resources | nindent 10 }}
+      {{- if .Values.init.extraContainers }}
+          {{- toYaml .Values.init.extraContainers | nindent 8 }}
+      {{- end }}
       {{- with .Values.nodeSelector }}
       nodeSelector: {{- toYaml . | nindent 8 }}
       {{- end }}
diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml
index 5e3f912979..67f685bf18 100644
--- a/helm/superset/values.yaml
+++ b/helm/superset/values.yaml
@@ -697,6 +697,8 @@ init:
       echo "Importing database connections.... "
       superset import_datasources -p {{ .Values.extraConfigMountPath }}/import_datasources.yaml
     fi
+  # -- Launch additional containers into init job pod
+  extraContainers: []
   ## Annotations to be added to init job pods
   podAnnotations: {}
   podSecurityContext: {}