Generate deploy/examples/common.yaml from Helm charts. There were still a few differences between common.yaml and the Helm charts. Where there were differences we assume common.yaml was the most up-to-date. Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
14 lines
380 B
Smarty
14 lines
380 B
Smarty
{{/*
|
|
Define imagePullSecrets option to pass to all service accounts
|
|
*/}}
|
|
{{- define "library.imagePullSecrets" }}
|
|
{{- if .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{ toYaml .Values.imagePullSecrets }}
|
|
{{- else }}
|
|
{{/* if the secrets are not included, include a comment for generating common.yaml */}}
|
|
# imagePullSecrets:
|
|
# - name: my-registry-secret
|
|
{{- end }}
|
|
{{- end }}
|