This PR fixes the values.yaml. In the values.yaml the key .Values.imagePullSecrets is included wich is misleading as it is not used.
The helper method uses the values in .global.imagePullSecrets and .Values.images.pullSecrets. Hence I deleted the imagePullSecrets Key and moved it to .Values.images.pullSecrets.
_helperts.tpl
...
{{- define "kubernetes-secret-generator.images.pullSecrets" -}}
{{- $pullSecrets := list }}
{{- if .global }}
{{- range .global.imagePullSecrets -}}
{{- $pullSecrets = append $pullSecrets . -}}
{{- end -}}
{{- end -}}
{{- range .images -}}
{{- range .pullSecrets -}}
{{- $pullSecrets = append $pullSecrets . -}}
{{- end -}}
{{- end -}}
{{- if (not (empty $pullSecrets)) }}
imagePullSecrets:
{{- range $pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- end -}}
This PR fixes the values.yaml. In the values.yaml the key
.Values.imagePullSecrets
is included wich is misleading as it is not used.The helper method uses the values in
.global.imagePullSecrets
and.Values.images.pullSecrets
. Hence I deleted theimagePullSecrets
Key and moved it to.Values.images.pullSecrets
._helperts.tpl ...
...