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 */ -}}
|
2021-12-06 11:15:06 -07:00
|
|
|
# imagePullSecrets:
|
|
|
|
|
# - name: my-registry-secret
|
2021-09-30 15:23:35 -06:00
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|