21 Commits

Author SHA1 Message Date
Thomas Schubart
42a3602fce
[ws-manager-mk2] Emit events for workspaces and snapshots (#16907)
* [wsman-mk2] Emit workspace events

* [installer] Permissions for events

* [ws-man-mk2] Emit snapshot events

* [installer] Update render tests

* [wsman-mk2] Include review comments
2023-03-20 13:59:12 +01:00
Wouter Verlaek
3a561bf274
[ws-manager-mk2] Check empty ns, delete secrets before finalizer (#16900) 2023-03-20 11:32: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
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
Wouter Verlaek
6694cf138b
[ws-manager-mk2] Enable tracing, add debug logs (#16643) 2023-03-06 16:22:03 +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
8fcec5e4f5 [ws-manager-mk2] Fix workspace URL 2023-02-15 10:55:19 +01:00
Wouter Verlaek
172c58c0eb [ws-manager-mk2] Workspace timeouts 2023-02-10 10:49:15 +01:00
Thomas Schubart
ab0ab235d3 [ws-manager-mk2] Ensure values are set despite update conflict 2023-02-09 12:30:14 +01:00
Thomas Schubart
1cf621f4c9 [ws-manager-mk2] Support tls for imagebuilder proxy 2023-02-09 12:30:14 +01:00
Wouter Verlaek
971c3d6412 [ws-manager-mk2] Implement MarkActive 2023-02-07 10:51:45 +01:00
Wouter Verlaek
8601821885 [ws-manager-mk2] Configure leader election 2023-02-03 15:02:42 +01:00
Thomas Schubart
63f168ab38 [ws-manager-mk2] Add metrics 2023-01-30 23:22:38 +01:00
Thomas Schubart
2e5ac7e4de [ws-manager-mk2] Register metrics 2023-01-30 23:22:38 +01:00
Wouter Verlaek
3651262ba2 [ws-manager-mk2] Configure health probes and leader election 2023-01-27 04:12:34 +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
Christian Weichel
a4f800583d Debug commit: about to start the controller 2023-01-23 14:14:30 +01:00
Christian Weichel
02aeede401 [ws-manager-mk2] Add validating webhook 2023-01-23 14:14:30 +01:00
Christian Weichel
cef3909630 Initial ws-manager-mk2 commit 2023-01-23 14:14:30 +01:00