32 Commits

Author SHA1 Message Date
Wouter Verlaek
2d4f94634c
[ws-manager-mk2] Fix git status (#17097)
* [ws-manager-mk2] Fix git status

* Remove unused var
2023-04-03 11:03:43 +02:00
Pudong
24c401ab78
[ws-manager-mk2] support custom closed timeout (#16988)
* [ws-manager-mk2] support custom closed timeout

* Default to the RegularWorkspace timeout

* remove code

---------

Co-authored-by: Wouter Verlaek <wouter@gitpod.io>
2023-03-31 20:05:40 +02:00
Wouter Verlaek
9e95640ab4
[ws-manager-mk2] Implement DescribeCluster (#17064) 2023-03-29 11:49:39 +02:00
Wouter Verlaek
ea5c7a6aab
[e2e] Support and fixes for mk2 e2e tests (#16990)
* [e2e] Support and fixes for mk2 e2e tests

* Fix GHA mk2 flag, add experimental label

* Add if

* Fix slack msg

* Empty-Commit again

---------

Co-authored-by: Kyle Brennan <kylos101@gmail.com>
2023-03-24 23:42:23 +01:00
Thomas Schubart
ace513ad7e
[ws-manager-mk2] Refactor workspace status conditions (#16896)
* [wsman-mk2] Refactor conditions

* [wsman-mk2] Specify reason
2023-03-20 11:10:12 +01:00
Thomas Schubart
c800175c72
[ws-manager-mk2] Protect tokens (#16806)
* [wsman-mk2] Create token secret

* [installer] Fix casing for namespace type metadata

* [installer] Create secrets namespace

* [installer] Configure roles and bindings

* [installer] Move namespace constant to common pkg

* [installer] Create permissions for ws-daemon

* [wsman-mk2] Watch on multiple ns

* [ws-daemon] Use token secret

* [wsman-mk2] Remove secret from initializer

* [wsman-mk2] Test token secret

* [werft] Fix document index

* [installer] Update render tests

* [wsman-mk2] Fix imports

* [wsman-mk2] Ensure maintenance controller required permissions

* [wsman-mk2] Retry deleting secret

* [installer] Ensure objects in secrets namespace are only created with mk2 option
2023-03-15 12:57:07 +01:00
Thomas Schubart
2c259c4dc8
[ws-manager-mk2] Support public SSH keys (#16413) 2023-03-13 14:50:49 +01:00
Wouter Verlaek
25220bb30b
[ws-manager-mk2] Maintenance mode (#16702)
* [ws-manager-mk2] Maintenance mode reconciler

* [ws-manager-mk2] Check for maintenance mode

* [ws-manager-mk2] Default to maintenance mode on startup

* [ws-manager-mk2] Disable maintenance on unmarshal failure
2023-03-09 17:25:45 +01:00
Thomas Schubart
040ab4de13
[ws-manager-mk2] Fix prebuild update events (#16688)
* [wsman-mk2] Change snapshot name for prebuilds

* [ws-manager-mk2] Return false instead of empty bool

* [ws-daemon] Update snapshot url while in stopping phase
2023-03-07 14:34:04 +01:00
Wouter Verlaek
ee9ea036d7
[ws-manager-mk2] Fix stopped status (#16665) 2023-03-06 16:28:04 +01:00
Wouter Verlaek
1631a4a038
[ws-manager-mk2] Loadgen fixes, concurrent reconciliation (#16613)
* [ws-manager-mk2] Loadgen fixes, concurrent reconciliation

* [ws-manager-mk2] Update tests with content readiness

* Simplify content ready check

* Fix json tags

* Revert poll interval
2023-03-06 15:18:04 +01:00
Thomas Schubart
400be836fb
[ws-manager-mk2] Protect environment secrets (#16601)
* [installer] Configure RBAC access to secrets

* [wsman-mk2] Create environment workspace secret

* [wsman-mk2] Delete workspace secret after start/stop

* [ws-manager-mk2] Update tests

* [ws-manager-mk2] Remove poll
2023-03-06 12:42:03 +01:00
Thomas Schubart
0f190439c2
[ws-manager-mk2] Setup separate image builder deployment for mk2 (#16519)
* [installer] Setup seperate image builder deployment for mk2

* [image-builder] Route to wsman-mk2

* [wsman-mk2] Set default class

* [installer] Update render tests

* [ws-manager-mk2] Use image builder secret

* [image-builder] Update render tests
2023-03-02 12:31:59 +01:00
Wouter Verlaek
df3e15a1d4
[ws-manager-mk2] Remove headless from status (#16530) 2023-02-23 17:36:53 +01:00
Thomas Schubart
116a5b97b2
[ws-manager-mk2] Support workspace snapshots (#16471)
* [ws-manager-mk2] Scaffold snapshot CRD

* [ws-mangaer-mk2] Generate snapshot type

* [ws-manger-mk2] Provide snapshot endpoint

* [ws-daemon] Handle snapshots

* [ws-manager-mk2] Harmonize imports

* [ws-manger-mk2] Set owner reference

* [installer] Install snapshot CRD

* [ws-manager-api] Fix descriptions

* [ws-manager-mk2] Review comments

- Name controller
- Return early in case of error
- Reduce scope of permissions
2023-02-23 16:45:53 +01:00
Wouter Verlaek
00229da4af [ws-manager-mk2] Add finalizer on workspace, handle deletion 2023-02-15 11:27:19 +01:00
Thomas Schubart
ad3b05c064 [ws-manager-mk2] Support system environment variables 2023-02-15 08:22:19 +01:00
Thomas Schubart
de8ee028a2 [ws-manager-mk2] Support class|network limiting and PSI 2023-02-15 08:05:19 +01:00
Wouter Verlaek
e62c773362 [ws-manager-mk2] Aborted condition, grace period 2023-02-14 12:04:19 +01:00
Wouter Verlaek
468f7bf016 [ws-manager-mk2] Controller env tests 2023-02-13 22:08:18 +01:00
Wouter Verlaek
810e17508d [ws-manager-mk2] Extract ctrl utils to common-go 2023-02-07 11:19:45 +01:00
Wouter Verlaek
971c3d6412 [ws-manager-mk2] Implement MarkActive 2023-02-07 10:51:45 +01:00
Thomas Schubart
c2f8799433 [ws-manager-mk2] Remove todos with no action required 2023-02-01 17:52:40 +01:00
Thomas Schubart
63f168ab38 [ws-manager-mk2] Add metrics 2023-01-30 23:22:38 +01:00
Thomas Schubart
75be62fba0 [ws-daemon] Dispose workspace 2023-01-30 14:59:37 +01:00
Christian Weichel
a3f8d86f3b [ws-manager-mk2] Fix build after rebase 2023-01-23 14:14:30 +01:00
Christian Weichel
99bff04aa5 [ws-manager-mk2] Rework CRD to better match k8s best practice 2023-01-23 14:14:30 +01:00
Christian Weichel
f91abd8a1e [ws-manager-mk2] Add workspace class support 2023-01-23 14:14:30 +01:00
Christian Weichel
27dd21b466 [ws-manager-mk2] Support workspace stops 2023-01-23 14:14:30 +01:00
Christian Weichel
abeea17ab5 Move ws-manager-mk2 CRD to API package 2023-01-23 14:14:30 +01:00
Christian Weichel
3b835ef533 Integrate content init and disposal 2023-01-23 14:14:30 +01:00
Christian Weichel
d147fd1c58 [ws-manager-mk2] Add gRPC service 2023-01-23 14:14:30 +01:00