568 Commits

Author SHA1 Message Date
Pavel Tumik @ GitPod
d5bc66615a remove trace from retryifUnavailable 2022-08-24 01:20:40 +02:00
Pavel Tumik
07d80c8fa8 add support for aborting workspaces 2022-08-23 20:20:40 +02:00
Manuel Alejandro de Brito Fontes
438ffab694 Update k8s dependencies to v0.24.4 2022-08-23 08:18:39 +02:00
Manuel Alejandro de Brito Fontes
f1c968f665 Remove deprecated test (because gsutil) 2022-08-23 08:18:39 +02:00
Manuel Alejandro de Brito Fontes
7b4a885ee3 Update k8s dependencies to v0.24.3 2022-08-23 08:18:39 +02:00
utam0k
25fc443625 ws-manager: Consistently use clearInitializerFromMap. 2022-08-23 04:27:39 +02:00
utam0k
5bf7449d70 ws-manager: Improve handling of sync.Map during initializing 2022-08-22 21:23:38 +02:00
utam0k
de79559a87 ws-manager: Replace initializerMapLock with sync.Map 2022-08-22 21:23:38 +02:00
utam0k
6042240fba ws-manager: Improve the monitor code. 2022-08-22 07:17:38 +02:00
Pavel Tumik
430bdd3c8b [ws-manager] remove hack that was disabling PVC feature 2022-08-22 02:07: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
bb60d0a24b ws-manager: add a handle if diposeStatus doesn't exist 2022-08-19 19:54:36 +02:00
utam0k
28c7ee2281 ws-manager: update the golden files 2022-08-19 19:54:36 +02:00
utam0k
a01ad87972 ws-manager: refactor the monitor. 2022-08-19 19:54:36 +02:00
Pavel Tumik @ GitPod
715ed4bbee fix race condition when creating notifyPod channel 2022-08-18 01:49:34 +02:00
utam0k
b89a41716c ws-manager: Fix consistency of disposed ws between ws-daemon and ws-manager 2022-08-16 20:36:33 +02:00
Manuel Alejandro de Brito Fontes
eca6a38887 Update golden files 2022-08-13 03:01:29 +02:00
Manuel Alejandro de Brito Fontes
df221fe7d0 Replace deprecated seccomp.security.alpha.kubernetes.io/pod annotation 2022-08-13 03:01:29 +02:00
Kyle Brennan
16932555d0 Revert "Update test files"
This reverts commit 688678493ae1741d7506b2acf8c0f62c566c54e7.
2022-08-11 06:23:54 +02:00
Kyle Brennan
613628700e Revert "Replace deprecated seccomp.security.alpha.kubernetes.io/pod annotation"
This reverts commit a7fb1be40f4acc82fff418648cf60a4f518da453.
2022-08-11 06:23:54 +02:00
Manuel Alejandro de Brito Fontes
9500ed33eb Remove duplication of parsing SUPERVISOR_ADDR 2022-08-11 01:40:54 +02:00
Manuel Alejandro de Brito Fontes
7a5fb96b53 Update test files 2022-08-11 01:39:55 +02:00
Manuel Alejandro de Brito Fontes
d0a098b3ce Replace deprecated seccomp.security.alpha.kubernetes.io/pod annotation 2022-08-11 01:39:55 +02:00
Andrew Farries
c4363513a5 Run gofmt
gofmt -w .

From the repository root.
2022-08-08 10:54:52 -03:00
JenTing Hsiao
e6f1734988 Retry doFinalize if gRPC status code is Unavailable
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-08-05 14:19:49 -03:00
Thomas Schubart
e437e18680 [ws-daemon/manager] Use feature flag 2022-08-05 11:42:49 -03:00
Thomas Schubart
b257cd8f2c [ws-manager] Update tests 2022-08-05 11:42:49 -03:00
Thomas Schubart
ee20a83d80 [ws-manager] Add cpu constraint annotations 2022-08-05 11:42:49 -03:00
Thomas Schubart
4b402429b1 Remove fixed resources 2022-08-04 06:57:48 -03:00
Manuel Alejandro de Brito Fontes
ccb4e180a7 Remove backup trail 2022-08-04 05:00:48 -03:00
JenTing Hsiao
ca37fdb1cb Revert "Add annotation gitpod.io/startedDisposal once we enter finalize workspace content"
This reverts commit e40e43d76120e5de702522e6b816f28b86a219c6.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-08-03 22:22:47 -03:00
Manuel Alejandro de Brito Fontes
1fd1173cf1 [ws-manager] Disable PVC feature 2022-08-03 17:55:47 -03:00
JenTing Hsiao
e40e43d761 Add annotation gitpod.io/startedDisposal once we enter finalize workspace content
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-08-03 03:17:47 -03:00
Pavel Tumik
b97e21a36b cleanup 2022-08-02 16:57:48 -03:00
Pavel Tumik
fb055491ad log error 2022-08-02 16:57:48 -03:00
Manuel Alejandro de Brito Fontes
54df112817 Replace lock with sync.Map 2022-08-02 16:57:48 -03:00
Pavel Tumik
ee9c9a3a4a improve tracing 2022-08-02 16:57:48 -03:00
JenTing Hsiao
8e9912f706 If workspace Id is empty, return it
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-08-02 05:34:46 -03:00
Pavel Tumik
27763e8d6f [ws-manager] fix not handling workspaces that are completed 2022-08-01 17:24:46 -03:00
JenTing Hsiao
66042649f5 unit test: update golden file
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-29 23:45:24 -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
509a83a46f Update unit test golden file
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-29 14:51:23 -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
JenTing Hsiao
347af9bff0 Add label to differentiate backup/restore total/failure is PVC or GCS
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-28 20:12: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
d8867d3cb5 Revert the ws-daemon max unavailable back to wsdaemonMaxAttempts
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-28 09:46:22 -03:00
Pavel Tumik
3f92a73ea8 [ws-manager] add metrics for unintentional workspace stop 2022-07-27 16:14:22 -03:00
Pavel Tumik
f4f86bb547 [ws-manager] fix incorrect handling of failure state for workspaces 2022-07-27 16:14:22 -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