From 90c16875887bd7da74c6038ce2fba3f8a2c6c2fe Mon Sep 17 00:00:00 2001 From: Brian Glogower Date: Wed, 8 Apr 2020 05:07:44 -0400 Subject: [PATCH] stable/goldpinter: Only use pullSecrets if defined in values.yaml (#21823) This was causing the DaemonSet to have an invalid key/value for imagePullSecrets ``` imagePullSecrets: - name: ``` Signed-off-by: Brian Glogower --- stable/goldpinger/Chart.yaml | 2 +- stable/goldpinger/templates/daemonset.yaml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/stable/goldpinger/Chart.yaml b/stable/goldpinger/Chart.yaml index 9ed53a2849..3d022ec28c 100644 --- a/stable/goldpinger/Chart.yaml +++ b/stable/goldpinger/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: goldpinger -version: 2.0.1 +version: 2.0.2 appVersion: 2.0.0 description: Goldpinger makes calls between its instances for visibility and alerting. home: https://github.com/bloomberg/goldpinger diff --git a/stable/goldpinger/templates/daemonset.yaml b/stable/goldpinger/templates/daemonset.yaml index 072ea32e48..96f6e6258b 100644 --- a/stable/goldpinger/templates/daemonset.yaml +++ b/stable/goldpinger/templates/daemonset.yaml @@ -24,8 +24,12 @@ spec: spec: priorityClassName: {{ .Values.priorityClassName }} serviceAccountName: {{ template "goldpinger.serviceAccountName" . }} + {{- if .Values.image.pullSecrets }} imagePullSecrets: - - name: {{ .Values.image.pullSecrets }} + {{- range .Values.image.pullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} containers: - name: goldpinger-daemon image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"