41 Commits

Author SHA1 Message Date
utam0k
67d810e226 ws-manager: Improve the peformance of reconcile handlerr 2022-12-28 23:23:37 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
JenTing Hsiao
9828b22aa1 ws-manager: use kubernetes operation timeout for mark workspace annotation operation
The ws-manager relies on the workspace pod annotation (as the workspace pod state)
to decide the code logic. Therefore, we must ensure the annotation is added to the workspace pod.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-10-21 11:00:36 +02:00
Pavel Tumik @ GitPod
23f3e4257a [ws-manager] simplify workspaceDisposalStatus and FinalBackupComplete condition 2022-08-26 01:54:10 +02:00
Pavel Tumik
07d80c8fa8 add support for aborting workspaces 2022-08-23 20:20:40 +02:00
utam0k
6042240fba ws-manager: Improve the monitor code. 2022-08-22 07:17:38 +02:00
utam0k
3917ed82de ws-manager: introduce a DisposalEmpty status. 2022-08-19 19:54:36 +02:00
utam0k
79401fba08 ws-manager: if disposal status is finished, don't run finalizer. 2022-08-19 19:54:36 +02:00
utam0k
a01ad87972 ws-manager: refactor the monitor. 2022-08-19 19:54:36 +02: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
JenTing Hsiao
492f34b0d3 Better wording
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-22 20:26:17 -03:00
JenTing Hsiao
6f9d729f9c Do not try to mark workspace pod if the pod does not exists
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-22 20:26:17 -03:00
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
utam0k
fd8e26f12a ws-manager: Use fmt.Errorf instead of xerrors.Errorf. 2022-05-25 12:06:39 +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
Pavel Tumik
0c66eb259d [ws-manager] fix workspace status flipping pending to deleted 2022-04-21 20:44:34 +05:30
Pavel Tumik
a4dbc1a726 try harder when attempting to add or remove annotation from workspaces 2022-03-02 04:06:09 +05:30
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
adb31ae0c6 [ws-manager] Remove error message if pod no longer exists 2021-09-13 16:15:38 +05:30
Christian Weichel
133cdcfa0c [image-builder] Backport mk3 from gitpod-com 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
Christian Weichel
eb0f0c37d8 [ws-manager] Backport #4405 to use nodeName 2021-06-25 15:50:48 +02:00
Christian Weichel
715ef34b22
[ws-manager] Backup on pod eviction (#4405)
* [ws-manager] Backup on pod eviction

* Fixed changelog

* Update components/ws-manager/pkg/manager/monitor.go

Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>
Co-authored-by: Jan Koehnlein <jan@gitpod.io>
Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>
2021-06-08 11:19:01 +02:00
Christian Weichel
2b5b6e7c86 [ws-manager] Remove all PLIS leftovers 2021-03-24 09:56:21 +01:00
Christian Weichel
724ed7a92a [ws-manager] Replace PLIS with k8s finalizer 2021-03-24 09:56:21 +01:00
Manuel Alejandro de Brito Fontes
326b3227be Enable user_namespace feature 2021-03-22 08:22:01 -03:00
Manuel Alejandro de Brito Fontes
53189d3fa6 [ws-manager] Lint code and cleanup protobuf 2021-03-16 07:35:57 -03:00
Gero Posmyk-Leinemann
8d1249a797 [cleanup] Removed ingressPortAllocator 2021-03-12 08:50:06 +01:00
Manuel Alejandro de Brito Fontes
2b6a56bc40 Update go imports 2021-03-02 06:37:49 -03:00
Manuel Alejandro de Brito Fontes
08774bd177 [ws-manager] Switch to controller-runtime abstraction 2021-03-01 14:00:58 -03:00
Christian Weichel
0fd958c8da [ws-manager] Make compatible with Kubernetes v1.20.1 2021-01-11 15:25:05 +01:00
ArthurSens
be14b4897a Add golangci-linter and fixes most linting issues
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-01-05 08:38:03 -03:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00
Christian Weichel
7172d822c7 [ws-daemon] Fold ws-manager-node into ws-daemon 2020-10-19 07:46:04 +02:00
Christian Weichel
6d93dd8348 [ws-daemon] Rename ws-sync to ws-daemon 2020-10-19 07:46:04 +02:00
Christian Weichel
2f5cca3ff0 [ws-manager] Provide user namespacing ability using a feature flag 2020-10-13 11:10:53 +02:00
gitpod-init
24f7b609bf initial commit 2020-08-25 09:25:15 +00:00