File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ spec:
100
100
{{- if .Values.terminationGracePeriodSeconds }}
101
101
terminationGracePeriodSeconds : {{ .Values.terminationGracePeriodSeconds }}
102
102
{{- end }}
103
+ # The .Values.extraInitContainers is not supported by the upstream chart!
104
+ {{- if .Values.extraInitContainers }}
105
+ {{- toYaml .Values.extraInitContainers | nindent 6 }}
106
+ {{- end }}
103
107
containers :
104
108
- name : {{ .Chart.Name }}
105
109
image : " {{ .Values.image.repository }}:{{ include " oauth2-proxy.version" . }}"
Original file line number Diff line number Diff line change @@ -215,6 +215,9 @@ extraContainers: []
215
215
# - name: my-sidecar
216
216
# image: nginx:latest
217
217
218
+ # The extraInitContainers is not supported by the upstream chart!
219
+ extraInitContainers : []
220
+
218
221
priorityClassName : " "
219
222
220
223
# hostAliases is a list of aliases to be added to /etc/hosts for network name resolution
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ extraVolumeMounts:
79
79
mountPath: /etc/oauth2-proxy/error.html
80
80
subPath: error.html
81
81
82
+ extraInitContainers:
83
+ - name: wait-for-keycloak
84
+ image: curlimages/curl:latest
85
+ command: ["/bin/sh","-c"]
86
+ args: ["while [ $(curl -sw '%{http_code}' {{ $v._derived.oidcBaseUrl }} -o /dev/null) -ne 200 ]; do sleep 2; echo 'Waiting for Keycloak OIDC Issuer URL'; done"]
87
+
82
88
{{- with .Values.otomi | get "globalPullSecret" nil }}
83
89
imagePullSecrets:
84
90
- name: otomi-pullsecret-global
You can’t perform that action at this time.
0 commit comments