Pavel Tumik
07d80c8fa8
add support for aborting workspaces
2022-08-23 20:20:40 +02:00
Andrew Farries
c4363513a5
Run gofmt
...
gofmt -w .
From the repository root.
2022-08-08 10:54:52 -03:00
Pavel Tumik
ee9c9a3a4a
improve tracing
2022-08-02 16:57:48 -03:00
JenTing Hsiao
35c6bd1a86
ws-manager: go through stopping phase even if the workspace is not ready
...
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-29 23:45:24 -03:00
JenTing Hsiao
bcc2956b61
Correct const variable naming. It should be a label, not an annotation
...
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-29 14:51:23 -03:00
Manuel Alejandro de Brito Fontes
f842bc51e2
Handle Pending pod due to Unschedulable reason
2022-07-28 12:17:23 -03:00
JenTing Hsiao
4c18f660ae
Check the pod label to determine the PVC feature flag is set
...
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-27 11:57:22 -03:00
Manuel Alejandro de Brito Fontes
093e8c6586
[ws-manager] Improve tracing logs
2022-07-26 23:15:21 -03:00
Manuel Alejandro de Brito Fontes
31ea75eb67
[ws-manager] Refactor connectToWorkspaceDaemon
2022-07-26 21:51:21 -03:00
Manuel Alejandro de Brito Fontes
d0e6bd7656
Refactor Manager StartWorkspace
2022-07-22 11:07:17 -03:00
Pavel Tumik
eac0ff1595
[ws-manager] when connecting to ws-daemon, ensure pod is running
2022-07-20 22:34:15 -03:00
Pavel Tumik
1d5e26c8a1
Update components/ws-manager/pkg/manager/manager.go
2022-07-18 20:34:14 +02:00
Pavel Tumik
50e3a5a942
Update components/ws-manager/pkg/manager/manager.go
2022-07-18 20:34:14 +02:00
JenTing Hsiao
9ac885f6f2
Use correct log variable to include OWI information in each log entry
...
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-18 20:34:14 +02:00
JenTing Hsiao
50d0fd078d
Add event to the workspace pod related to the restoration of the PVC
...
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-18 20:34:14 +02:00
Manuel Alejandro de Brito Fontes
05a0b75b22
[ws-manager] Wait for pod running before removing annotations
2022-07-15 04:45:01 +02:00
Manuel Alejandro de Brito Fontes
991ce8961b
[ws-manager] Remove workaround for 1.23.0 >= k8s < 1.23.6
2022-07-15 01:44:01 +02:00
Kyle Brennan
d7bb7b9234
[ws-manager] log errors as warnings during exponential backoff
...
If we still have an error afterwards, then log it
2022-07-08 22:29:55 +05:30
Christian Weichel
7fda2b3445
[ws-manager] Only extract secrets when FF is set
2022-07-08 14:27:55 +05:30
Pavel Tumik
a3105091f9
[ws-manager] fix bad log entry
2022-07-08 00:41:54 +05:30
Christian Weichel
3518346650
[ws-manager] Ship env vars as secret
2022-07-06 19:22:53 +05:30
Thomas Schubart
dd1992da46
[ws-manager] Implement cluster api
2022-06-30 21:26:38 +05:30
Pavel Tumik
5abab0393e
[ws-manager] fix crash when restoring from volume snapshot
2022-06-17 06:37:26 +05:30
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