-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build] feat: add env to set endpoints for non standard oidc auth in … #596
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dymart The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @dymart. Thanks for your PR. I'm waiting for a eclipse-che member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## main #596 +/- ##
==========================================
- Coverage 56.16% 55.96% -0.21%
==========================================
Files 219 223 +4
Lines 7449 7505 +56
Branches 1273 1269 -4
==========================================
+ Hits 4184 4200 +16
- Misses 3080 3119 +39
- Partials 185 186 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. |
Can test this with: eclipse-che/che-operator#1468 |
It seems to work overriding the KUBERNETES_SERVICE_HOST via |
@Jonher937 @dymart folks, are you ok with closing this PR? the env vars should have been set on the operator level |
…kubernetes
What does this PR do?
Add env vars ( KUBERNETES_PORT, KUBERNETES_PORT_443_TCP_ADDR, KUBERNETES_PORT_443_TCP, KUBERNETES_SERVICE_HOST ) to the dashboard so that one can set the endpoints for custom oidc auth in a kubernetes deployment. This also goes with the changes to che-operator that set these env vars in the deployment. This allows custom oidc endpoints for deployments in gke and other cloud providers that do not have dex setup.
goes with: eclipse-che/che-operator#1465
What issues does this PR fix or reference?
eclipse-che/che#21260
Is it tested? How?
The environment variables are added to the dashboard deployment if they are present in the operator manifest. Then is the env vars are set in the dashboard deployment the entrypoint.sh will check and see if they are present and is so set them. If not default values will stay with those env vars. Currently no tests for this.
Release Notes
Add env var to dashboard to change KUBERNETES_PORT, KUBERNETES_PORT_443_TCP_ADDR, KUBERNETES_PORT_443_TCP, KUBERNETES_SERVICE_HOST based on env vars from che-operator.
Docs PR eclipse-che/che-docs#2413