Files
my-rook-config/deploy/charts/library/templates/_imagepullsecret.tpl
T

13 lines
406 B
Smarty
Raw Normal View History

2025-09-11 08:59:51 +02:00
{{- /*
Define imagePullSecrets option to pass to all service accounts
2021-09-30 15:23:35 -06:00
*/}}
2025-09-11 08:59:51 +02:00
{{- define "library.imagePullSecrets" -}}
{{- if .Values.imagePullSecrets -}}
2021-09-30 15:23:35 -06:00
imagePullSecrets:
2025-09-11 08:59:51 +02:00
{{- .Values.imagePullSecrets | toYaml | nindent 2 }}
{{- else -}}
{{- /* if the secrets are not included, include a comment for generating common.yaml */ -}}
# imagePullSecrets:
# - name: my-registry-secret
2021-09-30 15:23:35 -06:00
{{- end }}
{{- end }}