Open eye0fra opened 2 weeks ago
@eye0fra Thank you for reporting this. For what its worth, this is an internally known DWO issue that's currently only documented as a TODO.
I'm not sure if there's any effective way for us to solve this: discoverable endpoints are intended to have services with a static, predefined name so that you can predict what the service will be called. If we add some level of randomization to the service's name, then it will no longer have a static name.
When starting up a workspace, we might be able to check if another workspace defines a service with the same name and fail the workspace if so, to alert the user that they need to use a different discoverable endpoint name?
Additionally, it should be documented that different devfiles used by the same user cannot define discoverable endpoints with the same name.
Hi @AObuchow ,
I agree that notifying the user is the best approach for now. This way, they can make the necessary edits to the DW/devfile accordingly.
Describe the bug
If I start two workspaces containing an endpoint with the same name, the dev workspace controller enters a loop. As a result, both namespaces do not start and remain stuck on "Preparing Service".
sample devfile
Che version
7.93@latest
Steps to reproduce
Expected behavior
Both workspaces should start without any issues
Runtime
OpenShift
Screenshots
Installation method
OperatorHub
Environment
other (please specify in additional context)
Eclipse Che Logs
No response
Additional context
Environment: DevSpaces Version: 3.16.1 DevWorkspaces Operator Version: 0.30.2