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 <xbglowx@gmail.com>
This commit is contained in:
Brian Glogower
2020-04-08 02:07:44 -07:00
committed by GitHub
parent bb683dda6f
commit 90c1687588
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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
+5 -1
View File
@@ -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 }}"