Skip to content

Commit b1b2c01

Browse files
committed
[helm] Add global.imagePullSecrets
1 parent a51aa47 commit b1b2c01

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -388,21 +388,23 @@ spec:
388388
name: configaccesslist
389389
{{- end }}
390390

391-
{{- with (concat .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
391+
{{- with (.Values.imagePullSecrets | default .Values.global.imagePullSecrets) }}
392392
imagePullSecrets:
393393
{{- toYaml . | nindent 8 }}
394-
{{- end }}
395-
{{- if .Values.affinity }}
394+
{{- end }}
395+
{{- with .Values.affinity }}
396396
affinity:
397-
{{ toYaml .Values.affinity | indent 8 }}
397+
{{- toYaml . | nindent 8 }}
398398
{{- end }}
399-
{{- if .Values.nodeSelector }}
399+
{{- with .Values.nodeSelector }}
400400
nodeSelector:
401-
{{ toYaml .Values.nodeSelector | indent 8 }}
401+
{{ toYaml . | nindent 8 }}
402402
{{- end }}
403+
{{- with .Values.tolerations }}
403404
tolerations:
404-
{{ toYaml .Values.tolerations | indent 8 }}
405-
{{- with .Values.topologySpreadConstraints }}
405+
{{- toYaml . | nindent 8 }}
406+
{{- end }}
407+
{{- with .Values.topologySpreadConstraints }}
406408
topologySpreadConstraints:
407409
{{- toYaml . | nindent 8 }}
408-
{{- end }}
410+
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
global: {}
2+
# To help compatibility with other charts which use global.imagePullSecrets.
3+
# global:
4+
# imagePullSecrets:
5+
# - name: pullSecret1
6+
# - name: pullSecret2
7+
18
## Override the deployment namespace
29
##
310
namespaceOverride: ""
@@ -75,7 +82,7 @@ image:
7582
# Optionally specify an array of imagePullSecrets.
7683
# Secrets must be manually created in the namespace.
7784
# ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
78-
# imagePullSecrets:
85+
imagePullSecrets: []
7986
# - name: myRegistryKeySecretName
8087

8188
# Set a custom containerPort if required.

0 commit comments

Comments
 (0)