From 33c90eafad5b9407a2ad9b3bc063ea3e4c72302e Mon Sep 17 00:00:00 2001 From: Pierluigi Lenoci <36044817+pierluigilenoci@users.noreply.github.com> Date: Tue, 14 Apr 2020 16:36:12 +0200 Subject: [PATCH] [stable/kube-slack] Kube slack image from different CR (#21915) * [stable/kube-slack] Added imagePullSecrets option to chart Signed-off-by: Pierluigi Lenoci * In this way works better Signed-off-by: Pierluigi Lenoci --- stable/kube-slack/Chart.yaml | 2 +- stable/kube-slack/templates/deployment.yaml | 4 ++++ stable/kube-slack/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/kube-slack/Chart.yaml b/stable/kube-slack/Chart.yaml index 7f4e5c79adf7..a9ffc0fd1697 100644 --- a/stable/kube-slack/Chart.yaml +++ b/stable/kube-slack/Chart.yaml @@ -1,5 +1,5 @@ name: kube-slack -version: 1.3.0 +version: 1.3.1 appVersion: v4.2.0 apiVersion: v1 description: Chart for kube-slack, a monitoring service for Kubernetes diff --git a/stable/kube-slack/templates/deployment.yaml b/stable/kube-slack/templates/deployment.yaml index ac7ef60dbae6..b11993bce9eb 100644 --- a/stable/kube-slack/templates/deployment.yaml +++ b/stable/kube-slack/templates/deployment.yaml @@ -41,6 +41,10 @@ spec: - configMapRef: name: {{ template "kube-slack.fullname" . }} resources: + {{ if .Values.image.pullSecret }} + imagePullSecrets: + - name: {{ .Values.image.pullSecret }} + {{- end }} {{ toYaml .Values.resources | indent 12 }} {{- if .Values.rbac.create }} serviceAccountName: {{ template "kube-slack.fullname" . }} diff --git a/stable/kube-slack/values.yaml b/stable/kube-slack/values.yaml index 558c5ea29a9e..bf7411baae76 100644 --- a/stable/kube-slack/values.yaml +++ b/stable/kube-slack/values.yaml @@ -38,6 +38,8 @@ image: repository: willwill/kube-slack tag: v4.2.0 pullPolicy: IfNotPresent + # If specified, use these secrets to access the image + # pullSecret: registry-secret resources: {} # limits: