-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make route for the workspaces more user friendly #20598
Comments
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
@l0rd I'd like to bump this request as well. I recently did a demo with an Angular app integrated with a Quarkus app on the backend via REST. I had to hack the Angular app to inject the Route to the Quarkus app. https://github.com/eclipse-che-demo-app/che-demo-app/blob/main/setUiEnv.sh WORKSPACE_ID=$(oc get devworkspace ${WORKSPACE_NAME} -o jsonpath={.status.devworkspaceId})
API_ROUTE=https://$(oc get route ${WORKSPACE_ID}-${CONTAINER_NAME}-${TARGET_PORT}-${ENDPOINT_NAME} -o jsonpath={.spec.host})
sed -i "s|${ENV_VAR}:.*|${ENV_VAR}: \'${API_ROUTE}\'|g" ${ENV_FILE_PATH} It would be really nice if the route were predictable from information in the |
@cgruver assuming that it works (I am afraid that it doesn't today in Che) I would expose the quarkus application endpoint internally ( |
Unfortunately that would not work in this case. The angular app runs in the browser rather than server side. So a Route is the only way for it to talk to the backend API. |
Hi @benoitf I'm not sure if I fully understand, what is the main use case of having several endpoints for a given port? |
I think probably I wanted to say 'workspace'. Like if I have multiple exposed ports to the outside |
Is your enhancement related to a problem? Please describe
Today I've routing to my workspaces that is using the following pattern:
https://che-eclipse-che.apps.my-cluster.com/workspace<tons-of-digits>/<endpoint-name>/<endpoint-port>
Describe the solution you'd like
I would rather have pattern
https://che-eclipse-che.apps.my-cluster.com/<username>/<workspace-name>/<endpoint-port>
(endpoint-name being only required if there is several endpoints for a given port)Describe alternatives you've considered
it could be anything that is more user friendly rather than tons of random digits
Additional context
No response
The text was updated successfully, but these errors were encountered: