Update the hostname format used for endpoints whose hostnames are too long from <workspace-id>-<order>.<base-domain> to <workspace-id>-<endpoint-name>.<base-domain> This is necessary as the iteration order through endpoints is random (iterating through Go maps is random), resulting in inconsistent numbers used for <order>. Using a combination of workspace ID and endpoint name should always be valid: * Workspace IDs are 25 characters long * Endpoint names are restricted to max 15 characters by the Devfile API * Endpoint names and workspace IDs are required to be alphanumeric with dashes, starting and ending with an alphanumeric character * Endpoint names are unique across all endpoints in the workspace Signed-off-by: Angel Misevski <amisevsk@redhat.com> |
||
|---|---|---|
| .. | ||
| defaults | ||
| solver | ||
| sync | ||
| README.adoc | ||
| controller.go | ||
| controller_test.go | ||
| init_test.go | ||
README.adoc
= Devworkspace Che controller This is an import of originally standalone Devworkspace Che operator. As such many things, that could be shared or reused with/from the rest of the che-operator codebase, aren't. This situation will hopefully improve over time as we integrate the two codebases more and more. In particular, the `controller/devworkspace/sync` subpackage is more or less identical to `deploy/sync` and should be replaced by `deploy/sync` after a careful inspection, if possible.