Commit Graph

31 Commits (d295ee14927f5f0877a1bcc9bbeef0c8ed2d20cf)

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 411821f612 fix: higher routing path match priority for longer pathnames
Signed-off-by: David Kwon <dakwon@redhat.com>
2023-06-22 10:03:10 -04: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
Anatolii Bazko 97f6177500
feat: Set empty CPU limits when possible (#1686)
* feat: Set empty CPU limits when possible

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-05-25 17:20:44 +03:00
Mykhailo Kuznietsov b9d8ce34b5
feat: add ability to override Gateway container in devEnvironments (#1639)
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Co-authored-by: Angel Misevski <amisevsk@redhat.com>

---------

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Co-authored-by: Angel Misevski <amisevsk@redhat.com>
2023-04-25 17:18:38 +03:00
Anatolii Bazko 8f9ebf2f8a
fix: Display workspace idle page on k8s (#1590)
* fix: Display workspace idle page on k8s

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* fix tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2023-01-04 10:52:45 +02:00
David Kwon e9e578ab15
Add retry middleware to retry connecting to mainurl if connection failed (#1579)
Signed-off-by: David Kwon <dakwon@redhat.com>
2022-12-16 10:22:28 -05:00
David Kwon c87253d34e
Use errors middleware to redirect workspace url to dashboard on 5xx error code (#1392)
* Use errors middleware to redirect workspace url to dashboard on 5xx error code

Signed-off-by: David Kwon <dakwon@redhat.com>
2022-06-16 09:44:28 -04:00
Anatolii Bazko 0bc1049017
feat: CheCluster API v2 (#1324)
* feat: CheCluster API v2

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-06-09 11:35:01 +03:00
Anatolii Bazko 5c4d9fa132
fix: Support internal endpoints (#1384)
* fix: Support internal endpoints

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-05-27 11:53:57 +03:00
Anatolii Bazko 51002ea5f2
chore: don't update chehost in CheCluster spec (#1340)
* chore: don't update chehost in CheCluster spec

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add missing files

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
2022-03-16 11:37:40 +02:00
Angel Misevski 9a6b62f51d Fix test cases to accomodate using workspaceID in router name
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2022-02-03 09:49:55 +01:00
Lukas Krejci 12da7adeeb
feat: Support node selector and pod tolerations in devworkspaces (#1301)
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
2022-02-01 17:51:35 +01:00
Angel Misevski c81c737d81
chore: Update DevWorkspace Operator dependency to v0.12.2 (#1302)
* 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>
2022-02-01 10:46:21 +02:00
Lukas Krejci 0e72bb2ca8
Sync the certificate from che-git-self-signed-cert to user namespaces (#1222)
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
2021-12-15 15:41:55 +01:00
Michal Vala 88cb1ed7ac
feat: native auth kube (#1185)
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-12-03 12:20:46 +01:00
Oleksandr Andriienko b4930b5054
fix: Fix license headers (#1170)
* Fix license headers.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-11-16 11:17:18 +02:00
Michal Vala d104845f89
feat: accessible workspace healthz endpoint (#1119)
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-10-11 19:22:36 +02:00
Serhii Leshchenko fcbc80e79e
fix: do not start DWR controller if devworkspaces are not enabled (#1133)
* fix: do not start DWR controller if devworkspaces are not enabled
2021-10-09 09:28:34 +03:00
Oleksandr Andriienko b8cc02bf9a
feat: Update controller runtime (#1064)
* 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>
2021-10-01 14:54:37 +03:00
Michal Vala bd8e5d0d07
feat: define routing paths for che-server to improve return http codes (#1076)
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-09-24 14:52:30 +03:00
Max Shaposhnik f4d80166ed
feat: Add Traefik gateway container CPU & RAM request/limit resources (#1088)
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
2021-09-24 13:14:58 +03:00
Michal Vala 2ad6c4fd6a
feat: secure workspace services (#1045)
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-09-17 12:37:02 +02:00
Oleksandr Andriienko 8b1dd1527a
feat: Update keycloak from 6.0.1 to 15 (#1015)
* Use keycloak 15.  Add separated option to debug keycloak server.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2021-09-10 12:36:00 +03:00
Max Shaposhnik f64dcf4bea
Fix kubernetes gateway rules creation 2021-09-09 17:29:27 +03:00
Sergii Leshchenko dd6a1e4af0 Do not use v1beta1 in DWCO code 2021-08-26 16:03:30 +03:00
Michal Vala 491f711eca
Gh19707 secure workspace (#1001)
Signed-off-by: Michal Vala <mvala@redhat.com>
2021-08-19 15:28:55 +02:00
Lukas Krejci 456743ce01
feat: Import Devworkspace Che Operator (#925)
* Import of DWCO into CO.

Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Co-authored-by: Michal Vala <mvala@redhat.com>
2021-08-11 15:07:44 +03:00