Commit Graph

5 Commits (main)

Author SHA1 Message Date
Angel Misevski d295ee1492 Update how too-long endpoint hostnames are handled
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>
2024-01-23 15:51:34 -05:00
Anatolii Bazko a4e19ead9d
chore: Update dev resources (#1774)
* chore: Update dev resources

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-11-02 15:16:31 +01:00
David Kwon 977d6bd1fb Use legacy routes if subdomain is too long
Signed-off-by: David Kwon <dakwon@redhat.com>
2023-06-09 11:23:46 -04:00
David Kwon cd72623e54 Fix subdomain for public endpoint urls
Signed-off-by: David Kwon <dakwon@redhat.com>
2023-06-06 12:08:30 -04:00
David Kwon 34a10852d4
Make workspace routes more user-friendly (#1672)
* 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>
2023-05-31 14:33:56 +03:00