From 5f07eb2d17d80745790505942a4abbfb8f3f117a Mon Sep 17 00:00:00 2001 From: Alexander Thaller Date: Thu, 4 Apr 2024 08:34:45 +0200 Subject: [PATCH] Add env variable MINIO_IDENTITY_OPENID_REDIRECT_URI to statefulset (#18949) Using oidc.redirectUri in the values.yaml only works for the deployment. When using the statefulset the environment variable MINIO_IDENTITY_OPENID_REDIRECT_URI is not set. This leads to errors with oicd providers. For example keycloak throws the error 'invalid redirect_uri'. This pull request fixes that. --- helm/minio/templates/statefulset.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/minio/templates/statefulset.yaml b/helm/minio/templates/statefulset.yaml index 938148ea2..f345f4c1c 100644 --- a/helm/minio/templates/statefulset.yaml +++ b/helm/minio/templates/statefulset.yaml @@ -181,6 +181,8 @@ spec: value: {{ .Values.oidc.scopes }} - name: MINIO_IDENTITY_OPENID_COMMENT value: {{ .Values.oidc.comment }} + - name: MINIO_IDENTITY_OPENID_REDIRECT_URI + value: {{ .Values.oidc.redirectUri }} - name: MINIO_IDENTITY_OPENID_DISPLAY_NAME value: {{ .Values.oidc.displayName }} {{- end }}