File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,14 @@ spec:
118118 - name : MINIO_IDENTITY_OPENID_CONFIG_URL
119119 value : {{ .Values.oidc.configUrl }}
120120 - name : MINIO_IDENTITY_OPENID_CLIENT_ID
121+ {{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientIdKey }}
122+ valueFrom :
123+ secretKeyRef :
124+ name : {{ .Values.oidc.existingClientSecretName }}
125+ key : {{ .Values.oidc.existingClientIdKey }}
126+ {{- else }}
121127 value : {{ .Values.oidc.clientId }}
128+ {{- end }}
122129 - name : MINIO_IDENTITY_OPENID_CLIENT_SECRET
123130 {{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientSecretKey }}
124131 valueFrom :
Original file line number Diff line number Diff line change @@ -156,7 +156,14 @@ spec:
156156 - name : MINIO_IDENTITY_OPENID_CONFIG_URL
157157 value : {{ .Values.oidc.configUrl }}
158158 - name : MINIO_IDENTITY_OPENID_CLIENT_ID
159+ {{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientIdKey }}
160+ valueFrom :
161+ secretKeyRef :
162+ name : {{ .Values.oidc.existingClientSecretName }}
163+ key : {{ .Values.oidc.existingClientIdKey }}
164+ {{- else }}
159165 value : {{ .Values.oidc.clientId }}
166+ {{- end }}
160167 - name : MINIO_IDENTITY_OPENID_CLIENT_SECRET
161168 {{- if and .Values.oidc.existingClientSecretName .Values.oidc.existingClientSecretKey }}
162169 valueFrom :
Original file line number Diff line number Diff line change @@ -486,8 +486,9 @@ oidc:
486486 configUrl : " https://identity-provider-url/.well-known/openid-configuration"
487487 clientId : " minio"
488488 clientSecret : " "
489- # Provide existing client secret from the Kubernetes Secret resource, existing secret will have priority over `clientSecret`
489+ # Provide existing client secret from the Kubernetes Secret resource, existing secret will have priority over `clientId` and/or ` clientSecret` `
490490 existingClientSecretName : " "
491+ existingClientIdKey : " "
491492 existingClientSecretKey : " "
492493 claimName : " policy"
493494 scopes : " openid,profile,email"
You can’t perform that action at this time.
0 commit comments