136 Commits

Author SHA1 Message Date
Pudong Zheng
fe6e39e3a3 [workspace] support user upload ssh keys
Co-authored-by: Huiwen <huiwen@gitpod.io>
Co-authored-by: Christian Weichel <chris@gitpod.io>
Co-authored-by: Pavel Tumik <18602811+sagor999@users.noreply.github.com>
2022-06-15 22:58:25 +05:30
Thomas Schubart
45b0b45ec0 Make some workspace metadata properties optional 2022-06-15 21:43:25 +05:30
Thomas Schubart
f5d555948a Extend ws-manager tracing with team and project 2022-06-15 21:43:25 +05:30
JenTing Hsiao
9631a0b57b Remove deprecated function
The function grpc.WithInsecure() is deprecated, use
grpc.WithTransportCredentials(insecure.NewCredentials()) instead.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-15 13:07:24 +05:30
Pavel Tumik
7a7792f531 volume snapshot delete and restore support, garbage collection 2022-06-15 02:37:25 +05:30
Pavel Tumik
e1b335c029 [ws-manager] change workspace state tracing 2022-06-14 17:06:24 +05:30
JenTing Hsiao
39557c3499 [ws-manager] Only calculate the volume restore time if it's restoring from the VolumeSnapshot
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-14 11:00:23 +05:30
JenTing Hsiao
b60a6d7079 [ws-manager] fix the possibility the volume restore time is incorrect
We might fall into the exponential backoff function, meaning that the
volume restore time would be calculated again even if we had already
calculated the volume restore time.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-14 11:00:23 +05:30
JenTing Hsiao
a171e147ab [ws-manager] Add a metric of PVC restore duration time
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-13 18:50:22 +05:30
JenTing Hsiao
ba4b27a386 [ws-manager] Skip error if the PVC resource already exists
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-13 18:50:22 +05:30
Christian Weichel
0f406c4468 [ws-manager] Add workspace class to metrics 2022-05-31 21:26:50 +05:30
Pavel Tumik
905be0afd1 address PR feedback 2022-05-25 13:17:39 +05:30
Pavel Tumik
99204170c5 ensure volume snapshot naming consistency 2022-05-25 13:17:39 +05:30
Pavel Tumik
88768f6e50 snapshot volume support 2022-05-25 13:17:39 +05:30
JenTing Hsiao
a816c6cc6f Add meta ID and owner to find the workspace image-build Pod
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-16 12:54:30 +05:30
Thomas Schubart
b5175874e7 Ensure deletion context has time left 2022-05-11 14:26:27 +05:30
Pavel Tumik
0ffc77d16a PR feedback fixes 2022-05-04 03:08:19 +05:30
Pavel Tumik
301190db53 Add persistent volume support for workspaces
fix
2022-05-04 03:08:19 +05:30
Christian Weichel
0150cf8cce [ws-manager] Introduce workspace classes 2022-04-29 14:24:15 +05:30
Pavel Tumik
0c66eb259d [ws-manager] fix workspace status flipping pending to deleted 2022-04-21 20:44:34 +05:30
Thomas Schubart
3bf6664eac Use checkout location during content init 2022-04-08 00:29:21 +05:30
Christian Weichel
0303453c07 Remove checkoutLocation from StartWorkspaceReq 2022-04-08 00:29:21 +05:30
Pavel Tumik
1f63f30867 improve oom pod error handling 2022-02-25 23:37:05 +05:30
Thomas Schubart
db3371b460 Log workspace starts and stop 2022-02-25 23:35:05 +05:30
Pavel Tumik
c126e600c3 improve error handling for oom fix 2022-02-23 21:31:03 +05:30
Prince Rachit Sinha
7033448dd4 [ws-manager] Add missing check to fix OOM error 2022-02-23 21:31:03 +05:30
Pavel Tumik
f41c652a84 [ws-manager] startWorkspace: properly handle edge cases when pod fails to start 2022-02-18 19:59:58 +05:30
Manuel Alejandro de Brito Fontes
a0454c3ccb [ws-manager] Wait for workspace pod to be ready 2022-02-18 19:59:58 +05:30
Christian Weichel
3d148ffdb2 [ws-manager] Add start request debug log 2022-02-12 03:42:33 +01:00
Manuel Alejandro de Brito Fontes
1dbe676019 [wa-manager] Refactor connectToWorkspaceDaemon helper 2022-02-01 08:57:23 +01:00
Manuel Alejandro de Brito Fontes
6d33af4106 Add support for ephemeral storage 2021-12-09 13:34:34 +01:00
Christian Weichel
5742c6a542 [ws-managr] Retry controlPort on conflict 2021-12-06 18:17:32 +01:00
Manuel Alejandro de Brito Fontes
037eb40107 Refactor ws-manager to stop using services 2021-11-05 10:33:03 +01:00
Christian Weichel
20adf1dbe6 [ws-manager] Introduce stoppedByRequest condition 2021-10-14 18:12:01 -03:00
Manuel Alejandro de Brito Fontes
fb8117655b [image-builder-mk3] Fix image build error "did not produce a workspace image" 2021-10-14 00:27:00 -03:00
Manuel Alejandro de Brito Fontes
1eb8f86a7b Refactor GRPC TLS connection default 2021-10-12 16:09:59 -03:00
Manuel Alejandro de Brito Fontes
12f10c68f9 Refactoring integration tests 2021-09-30 11:31:47 -03:00
Christian Weichel
c9d4e37444 [ws-manager] Provide ordering of status updates 2021-09-29 07:37:46 -03:00
Manuel Alejandro de Brito Fontes
e1e1ca5234 [ws-manager] Fix invalid logic to remove old endpoint 2021-09-22 02:50:47 -03:00
Manuel Alejandro de Brito Fontes
34aa730609 [ws-manager] Add validation of connections in the pool 2021-09-20 14:00:45 -03:00
Christian Weichel
d60599cd95 [common-go] Support client side gRPC metrics 2021-09-17 08:34:42 -03:00
Manuel Alejandro de Brito Fontes
092ec2f700 [ws-manager] Change log level for starting new workspaces 2021-09-13 18:24:38 +05:30
Christian Weichel
e5551dcd1b [ws-manager] Make config part of the API 2021-09-13 10:51:38 +05:30
Manuel Alejandro de Brito Fontes
48e0fdc817 [ws-manager] Refactor activity map to sync.Map 2021-09-02 16:19:09 +02:00
Manuel Alejandro de Brito Fontes
b7a3b87337 Remove duplication of GRPC configuration 2021-09-01 17:44:31 +02:00
Manuel Alejandro de Brito Fontes
18f11881b6 [ws-manager] Ensure status before setting phase tag 2021-08-23 09:37:22 +02:00
Christian Weichel
140c897d0d Remove old headless log infrastructure 2021-07-28 12:33:31 +02:00
Christian Weichel
5002453de7 [image-builder-mk3] Adapt to new log infrastructure 2021-07-22 16:32:26 +02:00
Christian Weichel
c61b777ef6 [ws-manager] Handle AlreadyExists in StartWorkspace 2021-07-22 16:32:26 +02:00
Christian Weichel
07f97d3f27 [ws-manager] Add support for workspace annotations 2021-07-22 16:32:26 +02:00