Skip to content

Commit cffbd78

Browse files
authored
support reading image pull secrets from globals (#340)
* support global image pull secrets for the deployment Defaults to reading from global image pull secrets when no pull secrets are provided. This makes it consistent when the image helper also reading from globals. * add it to global values
1 parent 686bd3d commit cffbd78

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

chart/templates/replicated-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
{{- include "replicated.podLabels" . | nindent 8 }}
2727
{{- end }}
2828
spec:
29-
{{- with .Values.imagePullSecrets }}
29+
{{- with .Values.imagePullSecrets | default .Values.global.imagePullSecrets }}
3030
imagePullSecrets:
3131
{{- toYaml . | nindent 8 }}
3232
{{- end }}

chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Global settings shared across multiple charts
66
global:
77
imageRegistry: "" # Optional registry override to use for all images
8+
imagePullSecrets: [] # List of secrets containing docker registry credentials
89

910
# Additional labels to add to all resources created by this chart
1011
# Useful for organizational or filtering purposes

0 commit comments

Comments
 (0)