Files
my-rook-config/deploy/charts/library/templates/_imagepullsecret.tpl
T
Blaine Gardner 757960ba28 build: generate common.yaml from helm charts
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>
(cherry picked from commit bcc7d3e541)
2021-12-07 22:07:09 +00:00

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 }}