From 5fd0fa3f999ed7c68699ade825876170d009b77f Mon Sep 17 00:00:00 2001 From: Don Bowman Date: Sun, 27 Jan 2019 19:31:12 -0500 Subject: [PATCH] Add imagePullSecrets for stable/superset chart (#10920) * Add imagePullSecrets for stable/superset chart Signed-off-by: Don Bowman * Inadvertently added this file, removed. Signed-off-by: Don Bowman --- stable/superset/Chart.yaml | 2 +- stable/superset/README.md | 1 + stable/superset/templates/deployment.yaml | 4 ++++ stable/superset/values.yaml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/superset/Chart.yaml b/stable/superset/Chart.yaml index c03757b56a..24b580b511 100644 --- a/stable/superset/Chart.yaml +++ b/stable/superset/Chart.yaml @@ -1,6 +1,6 @@ description: Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application name: superset -version: 1.1.0 +version: 1.1.1 appVersion: "0.28.1" keywords: - bi diff --git a/stable/superset/README.md b/stable/superset/README.md index eb41484001..6abb027504 100644 --- a/stable/superset/README.md +++ b/stable/superset/README.md @@ -44,6 +44,7 @@ The command removes all the Kubernetes components associated with the chart and | `image.repository` | `superset` image repository | `amancevice/superset` | | `image.tag` | `superset` image tag | `0.28.1` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `image.pullSecrets` | Secrets for private registry | `[]` | | `configFile` | Content of [`superset_config.py`](https://superset.incubator.apache.org/installation.html) | See values.yaml](./values.yaml) | | `extraConfigFiles` | Content of additional configuration files. Let the dictionary key name represent the name of the file and its value the files content. | `{}` | | `initFile` | Content of init shell script | See [values.yaml](./values.yaml) | diff --git a/stable/superset/templates/deployment.yaml b/stable/superset/templates/deployment.yaml index 92f7dbf1cc..f308a834a5 100644 --- a/stable/superset/templates/deployment.yaml +++ b/stable/superset/templates/deployment.yaml @@ -38,6 +38,10 @@ spec: {{- else }} emptyDir: {} {{- end }} + {{- if .Values.image.pullSecrets }} + imagePullSecrets: +{{ toYaml .Values.image.pullSecrets | indent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/stable/superset/values.yaml b/stable/superset/values.yaml index f62e24b3a8..47e222d10f 100644 --- a/stable/superset/values.yaml +++ b/stable/superset/values.yaml @@ -10,6 +10,7 @@ image: repository: "amancevice/superset" tag: "0.28.1" pullPolicy: "IfNotPresent" + pullSecrets: [] initFile: |- /usr/local/bin/superset-init --username admin --firstname admin --lastname user --email admin@fab.org --password admin