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
f25ba24c96
Always apply labels and update tests
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
Thomas Schubart
e11e13ec79
Add team and project to workspace request
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
JenTing Hsiao
4591e97f86
Use const variable
...
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-15 11:06:24 +05:30
Pavel Tumik
7a7792f531
volume snapshot delete and restore support, garbage collection
2022-06-15 02:37:25 +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
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
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
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
Pavel Tumik
8553668174
[ws-manager] change log from debug to error
2022-06-11 03:47:20 +05:30
Thomas Schubart
0f49949cf0
Add workspace class to environment variables
2022-06-09 23:08:19 +05:30
Aleksandar Aleksandrov
cdb1a33ed3
Configure grpc_server histogram metrics with proper buckets
2022-06-08 16:11:18 +05:30
Manuel Alejandro de Brito Fontes
5ed1deb661
Update to new stable alpine version v3.16
2022-06-07 15:33:17 +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
Pavel Tumik
73e41010dc
[ws-manager] add fixture to test debug workspace pod flag
2022-06-03 21:24:52 +05:30
Pavel Tumik
be4da3eb37
[ws-manager] add config setting that allows to debug workspaces
2022-06-03 21:24:52 +05:30
Pavel Tumik
0f0a855746
Update status_wsstartup_Creating00.golden
2022-06-02 22:52:51 +05:30
Pavel Tumik
35f0b08a5a
Update components/ws-manager/pkg/manager/status.go
...
Co-authored-by: Christian Weichel <chris@gitpod.io>
2022-06-02 22:52:51 +05:30
Pavel Tumik
eeedfcdce6
[ws-manager] show why pod entered completed state
2022-06-02 22:52:51 +05:30
Christian Weichel
0f406c4468
[ws-manager] Add workspace class to metrics
2022-05-31 21:26:50 +05:30
Pudong Zheng
406da1e9c7
[workspace] Cleanup unuse annotations and network policy
2022-05-31 10:21:49 +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
JenTing Hsiao
5d22d4ae7d
Add a metric to record volume snapshot time
...
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-30 22:14:48 +05:30
Mads Hartmann
2823606369
Ensure we close spans
2022-05-28 23:44:47 +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
mustard
1d14c1fa39
Fix ws-manager test case error
2022-05-25 15:22:39 +05:30
utam0k
0a68903b28
ws-manager: Refactor the annotation bool string.
2022-05-25 13:56:39 +05:30
utam0k
38a40f94e7
ws-manager: Add a test case for faild a workspace start-up.
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
Manuel Alejandro de Brito Fontes
f0bc3586cb
Update go modules
2022-05-25 13:18: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
utam0k
ee00426319
ws-manager: Use grpc.WithTransportCredentials instead of grpc.WithInsecure because of deprecated.
2022-05-25 12:06:39 +05:30
utam0k
fd8e26f12a
ws-manager: Use fmt.Errorf instead of xerrors.Errorf.
2022-05-25 12:06:39 +05:30
JenTing Hsiao
1646db75b3
Fix unit test TestCreatePVCForWorkspacePod
...
Update the golden file.
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-23 09:30:37 +05:30
JenTing Hsiao
d74402f78f
Configure the PVC storageClassName when it's non-empty string
...
Otherwise, the Kubernetes tries to requesting a PVC with no storage class.
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-23 09:30:37 +05:30
Pavel Tumik
b4db0c62ba
[ws-manager] add tests for createPVCForWorkspacePod
2022-05-23 05:15:36 +05:30
Milan Pavlik
6b11a82af7
[content-service] Port to use baseserver
2022-05-17 23:52:32 +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