Skip to content

Commit ca2ec4d

Browse files
committed
Support global image registry
- introduce `.global.imageRegistry` value to allow global configuration of the image registry - split up `image.repository` into `image.registry` and `image.repository` to allow separate configuration - use `image.registry` if `.global.imageRegistry` is not set Signed-off-by: Fiete Ostkamp <F.Ostkamp@web.de>
1 parent 8ed6010 commit ca2ec4d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
{{- end }}
109109
containers:
110110
- name: {{ .Chart.Name }}
111-
image: "{{ .Values.image.repository }}:{{ include "oauth2-proxy.version" . }}"
111+
image: "{{ .Values.global.imageRegistry | default .Values.image.registry }}/{{ .Values.image.repository }}:{{ include "oauth2-proxy.version" . }}"
112112
imagePullPolicy: {{ .Values.image.pullPolicy }}
113113
{{- if .Values.image.command }}
114114
command:

helm/oauth2-proxy/values.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +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
1+
global:
2+
# Global registry to pull the images from
3+
imageRegistry: ""
4+
# To help compatibility with other charts which use global.imagePullSecrets.
5+
imagePullSecrets: []
6+
# - name: pullSecret1
7+
# - name: pullSecret2
78

89
## Override the deployment namespace
910
##
@@ -75,7 +76,8 @@ alphaConfig:
7576
existingSecret: ~
7677

7778
image:
78-
repository: "quay.io/oauth2-proxy/oauth2-proxy"
79+
registry: "quay.io"
80+
repository: "oauth2-proxy/oauth2-proxy"
7981
# appVersion is used by default
8082
tag: ""
8183
pullPolicy: "IfNotPresent"

0 commit comments

Comments
 (0)