596 Commits

Author SHA1 Message Date
Manuel Alejandro de Brito Fontes
27979c9395
Update go dependencies (#17101)
* Update go dependencies

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>

* Update runc to v1.1.5

* Update docker cli to v23.0.2+incompatible

---------

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-04-12 10:03:52 +02:00
Manuel Alejandro de Brito Fontes
d24600e50c
Update github.com/google/nftables to v0.1.0 (#17098) 2023-04-12 02:31:51 +02:00
Manuel Alejandro de Brito Fontes
9cf0243e54
Add new feature for custom workspace network CIDR (#17145)
* Add new feature for custom workspace network CIDR

* Cleanup
2023-04-07 13:17:47 +02:00
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
Wouter Verlaek
c828d4176c
[ws-manager-mk2] Remember existing workspaces after a restart (#17066) 2023-03-29 20:43:39 +02:00
Thomas Schubart
d6cb9d1885
[ws-daemon] Refactor workspace operations (#17069) 2023-03-29 11:07:39 +02:00
Wouter Verlaek
c14a25cfdf
[ws-manager-mk2] Report content init/dispose failures (#17015) 2023-03-27 17:22:25 +02:00
Thomas Schubart
8871aed078
[wsman-mk2] Garbage collection for mk2 workspaces (#17021) 2023-03-24 18:18:16 +01:00
Thomas Schubart
b84a256400
[wsman-mk2] Ensure content init can be restarted (#17002) 2023-03-24 14:41:16 +01:00
Thomas Schubart
2cfe264c12
(wsman-mk2] Prevent partial backups (#16997) 2023-03-24 11:50:16 +01:00
Thomas Schubart
c64c4f3530
[ws-manager-mk2] Rely on controller concurrency mechanism for content init and backup (#16823)
* [wsman-mk2] Replace in memory state handling

* [ws-daemon] Operate on latest workspace CR

* [ws-daemon] Review comments
2023-03-23 16:31:17 +01:00
Kyle Brennan
a2176718ec
[dev image] update to Jammy (#16718)
* [dev image] update to Jammy

Ref: https://github.com/gitpod-io/workspace-images/pull/1017

no more `python-dev`

ref:
https://github.com/lewagon/data-setup/issues/219#issuecomment-1207519811
https://wiki.termux.com/wiki/No_more_-dev_packages

* [dev image] update images latest dev image

* [ws-manager] avoid false positive linter errors

* [ws-daemon] fix ineffectual assignment for err

golangci-lint is catching more errors since upgrading to go 1.19.5

* Update to more recent gcloud

* Moar timeout
2023-03-22 19:37:14 +01:00
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
95158eba38
[ws-manager-mk2] Don't dispose image builds (#16902) 2023-03-20 11:34:12 +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
Manuel Alejandro de Brito Fontes
95feb1a6bf
Remove cgroups v1 from commons-go (#16859)
* Remove cgroups v1 from commons-go

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>

* Remove cgroups v1 references

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>

---------

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-03-17 15:25:10 +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
Manuel Alejandro de Brito Fontes
218f64f7c1
Replace node labeler component with a dedicated deployment (#16712)
* Replace node labeler component with a dedicated deployment

* Update go modules

* Fix invalid module name

* Fix modules
2023-03-09 23:38:45 +01:00
Milan Pavlik
13b3b013b6
[logging] Enable storing/extracing of logger from context (#16658)
* [logging] Enable storing/extracing of logger from context

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix
2023-03-09 10:27: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
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
Milan Pavlik
e4e05143e2
[baseserver] Initialize tracer with server (#16586)
* [baseserver] Initialize tracer with server

* fix

* Fix

* fix
2023-03-03 14:57:01 +01:00
Manuel Alejandro de Brito Fontes
41ddf50849
[ws-daemon] Check connection to containerd socket (#16654)
* Check connection to containerd socket

* Mount containerd socket directory to avoid reconnect issues if containerd restarts

* Update golden files

* Break loop
2023-03-03 12:59:01 +01:00
Manuel Alejandro de Brito Fontes
dc69bb20ca
Remove host controller from ws-daemon (#16615)
* Remove host controller from ws-daemon

* Configure /etc/hosts file in registry-facade

* Update golden files
2023-03-01 00:55:58 +01:00
Thomas Schubart
12f3c91599
[ws-manager-mk2] Ensure workspace enters stopped (#16479) 2023-02-27 11:45:57 +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
74e2fee712
[ws-daemon] Expose controller metrics (#16465) 2023-02-23 10:41:53 +01:00
Wouter Verlaek
7440f00796
[ws-manager-mk2] Add Grafana dashboard (#16455)
* [ws-manager-mk2] Add Grafana dashboard

* [ws-manager-mk2] Add reconciliations by controller panel
2023-02-23 00:19:52 +01:00
Christian Weichel
0442b4688c [ws-daemon] Remove last cgroup v1 plugin 2023-02-22 14:27:52 +01:00
Christian Weichel
0eed48b048 [ws-daemon] Enforce cgroup v2 2023-02-22 14:27:52 +01:00
Pudong Zheng
40830a89d5 [workspace] change container iface name ceth0 to eth0 2023-02-20 15:05:50 +01:00
Kyle Brennan
852f5cd5b1 Update buildkit and containerd
* `buildkit` v0.11.2 -> v0.11.3
* `containerd` v1.6.16 -> v1.6.18
2023-02-20 14:38:50 +01:00
Manuel Alejandro de Brito Fontes
6f2af1ef90 Apply I/O limiting to all nvme drivers 2023-02-17 18:21:22 +01:00
Wouter Verlaek
eece193bef [ws-manager-mk2] Fix stuck on init/dispose failure 2023-02-15 10:52:19 +01:00
Wouter Verlaek
e62c773362 [ws-manager-mk2] Aborted condition, grace period 2023-02-14 12:04:19 +01:00
Shannon
c1e77d097d [ws-daemon] reduce noisy error to warning 2023-02-13 14:30:18 +01:00
Thomas Schubart
748d15ea54 [ws-daemon] Disable health and metric endpoint
Binds to the same port as ws-daemon grpc server
2023-02-09 12:30:14 +01:00
Wouter Verlaek
cb192728d1 Update Go dependencies 2023-02-08 16:47:46 +01:00
Manuel Alejandro de Brito Fontes
51e4ee5ea0 Remove cgroup v1 plugins 2023-02-06 00:52:43 +01:00
Manuel Alejandro de Brito Fontes
bcdde44633 Switch from alpine to wolfi 2023-02-05 12:10:43 +01:00
Thomas Schubart
382bde1767 [ws-manager-mk2] Switch to lru cache 2023-01-30 23:22:38 +01:00
Thomas Schubart
456e76bad7 [ws-daemon] Add metrics 2023-01-30 23:22:38 +01:00
Kyle Brennan
72af187f9c Update buildkit and containerd 2023-01-30 19:07:38 +01:00
Thomas Schubart
81e0623e0f [ws-daemon] Review comments
- Reuse workspace
- Update metric name
- Check if backup timed out
- Ensure temp directory is deleted
2023-01-30 14:59:37 +01:00
Thomas Schubart
fb41408cc3 [ws-daemon] Register metrics 2023-01-30 14:59:37 +01:00
Thomas Schubart
9d2cba620d [ws-daemon] Filter notifications 2023-01-30 14:59:37 +01:00
Thomas Schubart
f1454d3994 [ws-daemon] Only handle k8s operations in controller 2023-01-30 14:59:37 +01:00
Thomas Schubart
75be62fba0 [ws-daemon] Dispose workspace 2023-01-30 14:59:37 +01:00
Thomas Schubart
57a0bb90db [ws-daemon] Ensure controller manager is not active 2023-01-24 19:22:32 +01:00