2021-09-30 15:23:35 -06:00
|
|
|
{{/*
|
|
|
|
|
Define imagePullSecrets option to pass to all service accounts
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "library.imagePullSecrets" }}
|
|
|
|
|
{{- if .Values.imagePullSecrets }}
|
|
|
|
|
imagePullSecrets:
|
|
|
|
|
{{ toYaml .Values.imagePullSecrets }}
|
2021-12-06 11:15:06 -07:00
|
|
|
{{- 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 }}
|