128 Commits

Author SHA1 Message Date
Pavel Tumik
7d005012a8 Add PVC support to prebuilds 2022-06-24 22:22:33 +05:30
JenTing Hsiao
3e7c2505d0 Add volume snapshot events to workspace pod event
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-24 21:29:33 +05:30
JenTing Hsiao
8158f0b6c9 Watch VolumeSnapshot object is ready
When the VolumeSnapshot object is ready, notify to the Pod that it
belongs to.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-23 23:05:32 +05:30
JenTing Hsiao
6262677b6e [ws-manager] Only calculate the restore success/failure counter if it's restoring from the Backup or VolumeSnapshot
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-14 18:18:23 +05:30
Pavel Tumik
e1b335c029 [ws-manager] change workspace state tracing 2022-06-14 17:06:24 +05:30
JenTing Hsiao
3951854137 [ws-manager] Add workspace class label to PVC backup duration metric
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-13 18:50:22 +05:30
JenTing Hsiao
609d9b323e Add metrics to record backup success/failure count
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-06 23:30:16 +05:30
Christian Weichel
0f406c4468 [ws-manager] Add workspace class to metrics 2022-05-31 21:26:50 +05:30
JenTing Hsiao
1fbffffef2 Observe metrics when there are no errors.
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-30 22:14:48 +05:30
JenTing Hsiao
795e4e75cd Calculate the time of taking the volume snapshot
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-30 22:14:48 +05:30
Manuel Alejandro de Brito Fontes
fe904f9571 [ws-manager] Check the pod contains a workspace class and exists 2022-05-26 02:31:39 +05:30
utam0k
0a68903b28 ws-manager: Refactor the annotation bool string. 2022-05-25 13:56:39 +05:30
utam0k
6419e31102 Make the pods be removed when workspacekit fails. 2022-05-25 13:56:39 +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
c216147283 [ws-manager] improve error handling around snapshot volume creation 2022-05-25 13:17:39 +05:30
Pavel Tumik
c6910dac35 tie snapshot volumes to workspace instance id 2022-05-25 13:17:39 +05:30
Pavel Tumik
56d1756376 remove daemon-api change as it is not needed 2022-05-25 13:17:39 +05:30
Pavel Tumik
88768f6e50 snapshot volume support 2022-05-25 13:17:39 +05:30
Pavel Tumik
30e8f7d292 [ws-manager] make sure to fail prebuild if we cannot store snapshot from it 2022-05-17 13:44:31 +05:30
Pavel Tumik @ GitPod
cc893bee20 [ws-manager] fix calling dispose multiple times 2022-05-06 14:31:21 +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
fc1b0ac4a6 [ws-daemon] Support storage quota per class 2022-04-29 14:24:15 +05:30
Pavel Tumik
fbbec7b307 [ws-manager] fix finalizeWorkspaceContent can be called twice 2022-04-28 09:47:14 +05:30
Pavel Tumik
f9c93c4468 [ws-manager] add metrics to track initialize and finalize of workspaces 2022-04-19 04:45:31 +05:30
Manuel Alejandro de Brito Fontes
90fe82a508 Remove ghost from the codebase 2022-02-28 14:17:07 +05:30
Prince Rachit Sinha
4d48ccb997 Add maximum lifetime constraint for a workspace 2022-02-22 16:25:02 +05:30
Pudong Zheng
d63b2f37c0 Redact GIT_EMAIL in event trace logs 2021-11-25 11:43:21 +01:00
Manuel Alejandro de Brito Fontes
037eb40107 Refactor ws-manager to stop using services 2021-11-05 10:33:03 +01:00
Manuel Alejandro de Brito Fontes
9236478d80 Set a timeout for probes 2021-10-20 14:25:58 -03:00
Manuel Alejandro de Brito Fontes
414be7f514 [ws-manager] Refactor probes 2021-10-20 14:25:58 -03:00
Christian Weichel
20adf1dbe6 [ws-manager] Introduce stoppedByRequest condition 2021-10-14 18:12:01 -03:00
Christian Weichel
34604e5788 [ws-manager] Don't upload image build logs 2021-10-14 18:09:01 -03:00
Christian Weichel
da1919f1cc [ws-daemon] Properly handle mark unmount 2021-09-29 09:07:46 -03:00
Manuel Alejandro de Brito Fontes
0c69968662 [ws-manager] Wait additional time to deletionGracePeriod before finalize workspace 2021-09-10 12:25:16 +05:30
Christian Weichel
36783535fc [ws-manager] Log event trace log as INFO 2021-09-06 16:46:12 +02:00
Manuel Alejandro de Brito Fontes
347ad95d80 Switch from fmt.Errorf to xerrors.Errorf 2021-08-30 02:47:28 -03:00
Christian Weichel
cd10b6eaa1 [ws-manager] Add unit test for actOnPodEvent 2021-08-27 06:38:25 -03:00
Manuel Alejandro de Brito Fontes
a1da634398 [ws-daemon] Refactor unmount 2021-08-25 16:09:24 +02:00
Manuel Alejandro de Brito Fontes
59ba5ee071 Do not upload ghost workspace logs 2021-08-12 17:53:11 +02:00
Christian Weichel
5b15f69021 [ws-manager] Don't use remote storage for image builds and ghosts 2021-07-28 17:52:32 +02:00
Christian Weichel
1c7b10e228 [ws-manager] Stop workspaces timing out during backup 2021-07-26 16:14:30 +02:00
Christian Weichel
07f97d3f27 [ws-manager] Add support for workspace annotations 2021-07-22 16:32:26 +02:00
Gero Posmyk-Leinemann
000da4503b [ws-daemon] Upload logs 2021-07-15 09:00:38 +02:00
Gero Posmyk-Leinemann
8f0c24af66 [ws-manager, supervisor, bridge] Prebuild workspaces are done when their container stops 2021-07-08 09:27:34 +02:00
Manuel Alejandro de Brito Fontes
adc1ddf507 Fix propagation of span error 2021-07-07 05:40:06 -04:00
Christian Weichel
eb0f0c37d8 [ws-manager] Backport #4405 to use nodeName 2021-06-25 15:50:48 +02:00
Manuel Alejandro de Brito Fontes
8b224a0b10 [ws-manager] Set GracePeriodSeconds for deletion of objects 2021-06-25 05:29:32 -04:00
Manuel Alejandro de Brito Fontes
26b012a65c Cleanup tracing spans 2021-06-09 12:08:03 -04:00