182 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
0095dcefd8
[prometheus] Remove references to db_write (#17041) 2023-03-28 20:49:26 +02:00
Milan Pavlik
a5df1cb005
Revert "Remove workspace_classes_backend feature flag (#16825)" (#16854)
This reverts commit afb724660182fcd480dc2e7fc06c45291b0023ad.
2023-03-15 10:34:07 +01:00
Milan Pavlik
5bcd92c36f
[ws-man-bridge] Remove application_cluster (#16840)
* [ws-man-bridge] Renmove application_cluster

* Fix
2023-03-15 10:20:07 +01:00
Milan Pavlik
0e2ec6cd24
Remove usage of applicationCluster column from WorkspaceCluster (#16824)
* Remove usage of applicationCluster column from WorkspaceCluster

* fix

* Fix

* fix

* Fix

* fix

* Fix

* fix

* Fix

* Fix

* fix
2023-03-14 13:13:07 +01:00
Milan Pavlik
f4a06b818c
[ws-man-bridge] Fix leftover imports (#16827) 2023-03-13 17:11:49 +01:00
Milan Pavlik
afb7246601
Remove workspace_classes_backend feature flag (#16825) 2023-03-13 15:27:49 +01:00
Milan Pavlik
805beca614
[ws-man-bridge] Correct name for Workspace Instance Controller var (#16795)
* [ws-man-bridge] Correct name for Workspac Instance Controller var

* fix

* Fix
2023-03-10 10:37:45 +01:00
Milan Pavlik
5f3dfe2699
[ws-man-bridge-api] Always set govern to true (#16631)
* [ws-man-bridge-api] Always set govern to true

* fix

* Fix
2023-03-08 14:56:05 +01:00
Milan Pavlik
79506aae2d
[ws-man-bridge] Remove non-governing codepaths (#16637)
* [ws-man-bridge] Remove non-governing codepaths

* Fix
2023-03-06 13:59:03 +01:00
Milan Pavlik
5317b53ef8
[db-sync] Remove comment references (#16602) 2023-03-01 11:06:58 +01:00
Huiwen
c98dde3b41 [ws-manager-bridge] fix incorrect module import 2023-02-13 08:34:18 +01:00
Milan Pavlik
00aacaeb5a [ws-man-bridge] Expose region in ClusterStatus 2023-02-10 15:30:15 +01:00
Milan Pavlik
db05a7f5be [server] Typed workspace region 2023-02-10 15:26:15 +01:00
Sven Efftinge
74aa6db6e4 [ws-manager-api] Add region for cluster selection 2023-02-08 10:51:46 +01:00
Milan Pavlik
5d38b2d220 [ws-manager-bridge] DoStop logging workspacestatus.auth for prebuilds 2023-01-17 12:18:25 +01:00
Milan Pavlik
f125f5a5cd [ws-manager-bridge] Stop logging status.auth field 2023-01-17 11:29:25 +01:00
Mads Hartmann
06557ea800 Remove build artifacts from leeway package srcs lists 2022-12-12 08:12:22 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Sven Efftinge
91ad8a3550 [pvc] remove pvc related code 2022-12-01 09:07:00 -03:00
Andrew Farries
0b226113cd Take the applicationCluster from config
Take the applicationCluster from config as happens elsewhere in this
module rather than from the environment.
2022-11-02 09:33:06 +01:00
Andrew Farries
076f35a1f2 Make deleteByName take an applicationCluster
Deleting a workspace cluster by name only makes sense in the context of
a particular workspace cluster.
2022-10-26 17:26:42 +02:00
Andrew Farries
e9eb6ac097 Make findByName take an applicationCluster
Finding a workspace cluster by name only makes sense in the context of a
particular workspace cluster.
2022-10-26 17:26:42 +02:00
Andrew Farries
eddd3936c5 Make applicationCluster mandatory when filtering 2022-10-26 17:26:42 +02:00
Andrew Farries
2ede9de6e0 Pass applicationCluster everywhere
Connect the configured installationShortname aka applicationCluster from
server, ws-manager-bridge, and the image-builder-api to workspace
cluster provider.
2022-10-26 17:26:42 +02:00
Gero Posmyk-Leinemann
f89cbd4575 [bridge] Introduce AppClusterWorkspaceInstanceController 2022-10-24 09:30:39 +02:00
Gero Posmyk-Leinemann
e2cfceb2d2 [bridge] Extract WorkspaceInstanceController 2022-10-19 10:57:34 +02:00
Gero Posmyk-Leinemann
2ff2afc8f7 [bridge] Make telepresence work again 2022-10-19 10:57:34 +02:00
Andrew Farries
ff707d2fdc Return application cluster from service-server
Populate the new field added to the gRPC message in the parent commit.
2022-10-18 16:01:33 +02:00
Andrew Farries
3dde49ea58 Set applicationCluster when registering cluster
Set the application cluster when registering a new workspace cluster.

The applicationCluster is set to the value of the
GITPOD_INSTALLATION_SHORTNAME env var which must be set in the
environment of ws manager bridge.
2022-10-17 18:34:32 +02:00
Laurie T. Malau
9fd365e0ae [metric] Add metric for instances marked as stopped 2022-10-06 16:23:22 +02:00
Laurie T. Malau
e00bffa9ce [bridge] Mark as stopped pending and stopping 2022-09-29 15:16:29 +02:00
Alex Tugarev
dbb182a577 [server] mark prebuild as failed when image build fails 2022-09-26 16:21:27 +02:00
Alex Tugarev
0eab1e9153 [server] use Buffer.from properly
Trying to get rid of deprecation log entries.
2022-09-26 09:44:26 +02:00
Jan Keromnes
d745f7ff21 [ws-manager-bridge] Clean up instance tokens and track workspace stop even in irregular cases 2022-09-19 12:18:20 +02:00
Laurie T. Malau
2c14f37442 Fix logging 2022-09-15 11:49:16 +02:00
Laurie T. Malau
f2af99928f Stops stuck workspaces 2022-09-14 22:09:15 +02:00
Jan Keromnes
dadc064c59 [ws-manager-bridge] Use more reasonable duration buckets for workspace instance updates 2022-09-09 09:51:24 +02:00
Jan Keromnes
a1df2b972d [ws-manager-bridge] Don't report workspace instance update failures as both a failure and a success 2022-09-09 09:13:24 +02:00
Thomas Schubart
576eaaf250 [bridge] Return instances preventing deregistration 2022-08-17 10:01:34 +02:00
Jean Pierre
3014435230 Match google-protobuf version across components 2022-08-17 08:14:33 +02:00
Sven Efftinge
a00f21067c [server] maintain workspace instance state
get closer to workspace instance state reflects actual state in cluster.
2022-08-12 09:15:29 +02:00
Gero Posmyk-Leinemann
2dc450d595 [protocol, et al] Extract gRPC ClientCallMetrics into protocol 2022-07-20 09:31:15 -03:00
Christian Weichel
76ad6c215e [ws-manager-bridge] Remove HasMoreResources admission constraint
We've moved to workspace classes for this feature.
2022-07-15 14:31:02 +02:00
Christian Weichel
68840d62d4 [ws-manager-bridge] Remove HasUserLevel admission constraint
We never really used it and solved this case with other means
2022-07-14 19:49:01 +02:00
Gero Posmyk-Leinemann
6ace17b547 [server] Use workspace cluster as image-builder (feature flag: "movedImageBuilder") 2022-07-12 14:40:59 +05:30
Christian Weichel
48aff21449 [ws-manager-bridge] Use WS update status version 2022-07-08 20:23:55 +05:30
Thomas Schubart
88e5beb8d6 [bridge] Regularly check for class updates 2022-07-06 23:15:53 +05:30
Thomas Schubart
5c51126ce7 [bridge] Add deployment script 2022-07-06 23:15:53 +05:30
Thomas Schubart
24d939d021 [bridge] Retrieve classes during registration 2022-07-06 23:15:53 +05:30
Gero Posmyk-Leinemann
564a6923c9 [bridge] Remove timeout for 'stopping', as that is responsibility of ws-manager 2022-06-30 17:08:38 +05:30