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>
* Make workspace routes more user-friendly
Signed-off-by: David Kwon <dakwon@redhat.com>
* Add update verb for ingress in che-operator CR
Signed-off-by: David Kwon <dakwon@redhat.com>
* Legacy support
Signed-off-by: David Kwon <dakwon@redhat.com>
* Remove componentName field from from legacy strategy
Signed-off-by: David Kwon <dakwon@redhat.com>
* Determine path strategy in different function
Signed-off-by: David Kwon <dakwon@redhat.com>
* Enforce lowercase for username and dw name
Signed-off-by: David Kwon <dakwon@redhat.com>
* Run make update-dev-resources'
Signed-off-by: David Kwon <dakwon@redhat.com>
* Update dev resources
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
---------
Signed-off-by: David Kwon <dakwon@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Fixes#20884
* Upgrade to devworkspace operator with support for pod tolerations
* Implement additional logic in usernamespace controller to sync config
from checluster CR to ns annotations understood by the dwo
* Add new fields to CheCluster CRD v1 and v2alpha1
* added support for the new fields in conversion methods between v1 and v2alpha1
* Update DevWorkspace Operator dependency to v0.12.2
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
* Update vendor directory to include DWO v0.12.2
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
* Adapt Che routing solver to DevWorkspace Operator changes
Adapt code in Che RoutingSolver to accomodate changes in DWO that
disconnect DevWorkspaceRouting resources from the upstream Devfile API
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
* Set Go version to 1.16
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
* Update all Go images used to use Go 1.16
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
* Set up Go to use 1.16 in PR check GitHub actions
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
* Update RBAC
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
feat: Sync the git tls certificate configuration in a format digestable by DWO.
Other slightly related changes:
* Make sure the version content annotations survive across multiple conversions
between v1 and v2alpha1.
* Add DWO watch labels so that our stuff is picked up.
* irifrance/gini has moved to go-air/gini
* Update controller runtime for che-operator and related deps.
Controller runtime update to version v0.9.5
go-client update to version v0.21.3
Udaptated tests to the new controller runtime and go-client.
Use newer image puller.
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>