Skip to content

Commit 1daccb7

Browse files
Merge pull request #228 from jkroepke/imagePullSecrets
[helm] Add global.imagePullSecrets
2 parents ca0ef13 + b2d887e commit 1daccb7

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.7.10
2+
version: 7.7.11
33
apiVersion: v2
44
appVersion: 7.6.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/templates/deployment.yaml

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

391-
{{- if .Values.imagePullSecrets }}
391+
{{- with (.Values.imagePullSecrets | default .Values.global.imagePullSecrets) }}
392392
imagePullSecrets:
393-
{{ toYaml .Values.imagePullSecrets | indent 8 }}
394-
{{- end }}
395-
{{- if .Values.affinity }}
393+
{{- toYaml . | nindent 8 }}
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)