From c12fa0e3dd07e7d54830983962de73b985176b66 Mon Sep 17 00:00:00 2001 From: David Cruz Date: Mon, 25 Mar 2019 09:27:10 -0700 Subject: [PATCH] [stable/kubernetes-dashboard] Add imagePullSecrets support (#12476) * [stable/kubernetes-dashboard] Add imagePullSecrets support Signed-off-by: David Cruz * Bump version Signed-off-by: David Cruz --- stable/kubernetes-dashboard/Chart.yaml | 2 +- stable/kubernetes-dashboard/README.md | 1 + stable/kubernetes-dashboard/templates/deployment.yaml | 6 ++++++ stable/kubernetes-dashboard/values.yaml | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/kubernetes-dashboard/Chart.yaml b/stable/kubernetes-dashboard/Chart.yaml index 5ddc632859..4e74fc21ed 100644 --- a/stable/kubernetes-dashboard/Chart.yaml +++ b/stable/kubernetes-dashboard/Chart.yaml @@ -1,5 +1,5 @@ name: kubernetes-dashboard -version: 1.2.2 +version: 1.3.0 appVersion: 1.10.1 description: General-purpose web UI for Kubernetes clusters keywords: diff --git a/stable/kubernetes-dashboard/README.md b/stable/kubernetes-dashboard/README.md index 364bf9df6a..d475c8df27 100644 --- a/stable/kubernetes-dashboard/README.md +++ b/stable/kubernetes-dashboard/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the kubernetes-dashboar | `image.repository` | Repository for container image | `k8s.gcr.io/kubernetes-dashboard-amd64` | | `image.tag` | Image tag | `v1.10.1` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `image.pullSecrets` | Image pull secrets | `[]` | | `annotations` | Annotations for deployment | `{}` | | `replicaCount` | Number of replicas | `1` | | `extraArgs` | Additional container arguments | `[]` | diff --git a/stable/kubernetes-dashboard/templates/deployment.yaml b/stable/kubernetes-dashboard/templates/deployment.yaml index 5c39909954..d737c9a95a 100644 --- a/stable/kubernetes-dashboard/templates/deployment.yaml +++ b/stable/kubernetes-dashboard/templates/deployment.yaml @@ -81,6 +81,12 @@ spec: timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} resources: {{ toYaml .Values.resources | indent 10 }} + {{- if .Values.image.pullSecrets }} + imagePullSecrets: + {{- range .Values.image.pullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} diff --git a/stable/kubernetes-dashboard/values.yaml b/stable/kubernetes-dashboard/values.yaml index b35f2b4608..16167aa300 100644 --- a/stable/kubernetes-dashboard/values.yaml +++ b/stable/kubernetes-dashboard/values.yaml @@ -7,6 +7,7 @@ image: repository: k8s.gcr.io/kubernetes-dashboard-amd64 tag: v1.10.1 pullPolicy: IfNotPresent + pullSecrets: [] replicaCount: 1