12 Commits

Author SHA1 Message Date
iQQBot
52a7727b4f
[node-labeler] Refactor node labeling to use taints instead of labels (#20652)
* [node-labeler] Refactor node labeling to use taints instead of labels

* [agent-smith] Add toleration to daemonset

* Add workspace component tolerations to various Gitpod components if it running in Full installation

* Apply suggestions from code review

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

* Update components/node-labeler/cmd/run.go

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2025-03-11 03:30:39 -04:00
Filip Troníček
4d3cca4209
[node-labeler] Introduce workspace count controller (#20509)
* [ws-daemon] Introduce pod count controller

* remove unnecessary variable

* move to `node-labeler`

* act on ws crds

* Fix runtime not filled in yet

* Make tests pass!

* Improve test file structure

* Fix `node-labeler:lib` build

* Remove unnecessary changes

* Address some review comments (thanks, kyle!)

* Try caching?

* Queue deleted nodes and periodically reconcile it all

* WCC cleanup function

* Fix tests

* Update name

* Add metrics for controller

* Add synchronization for node reconciliation to prevent race conditions

* Address review comments

* Remove superflous log

* Remove unneeded metrics and add cool log line

* big yellow warning for a thing that should not happen
2025-01-21 18:12:11 -05:00
Pudong
07182a159e
Revert "refactory node-label (#19909)" (#19977)
This reverts commit 0c37525a88f9be6501939f04d037daef5ad6c8f7.
2024-06-27 13:11:22 +02:00
Pudong
0c37525a88
refactory node-label (#19909) 2024-06-17 14:41:12 +08:00
Manuel Alejandro de Brito Fontes
f12de25618
Increase initial healthcheck start (#19596) 2024-04-03 11:36:42 +02:00
Manuel Alejandro de Brito Fontes
5992b0f614
Update go dependencies (#19577)
* Update go dependencies

* Update S3

* Caddy plugins cannot use 1.22

* Update controller runtime signatures

* Update webhook suite test

* Update IPFS signatures

* Update go modules

* Update ipfs-cluster to v1.0.8

* Fix node-labeler build

* Fix IPFS CID parsing

* Update ipfs-cluster version

* Update controller-runtime signature

* Update statefulset signature

* Disable controller-runtime metrics

* Add comments
2024-03-26 20:55:35 +01:00
Manuel Alejandro de Brito Fontes
1a3c4b0bb6
Improve node-labeler logs (#17087)
Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-03-30 02:03:39 +02:00
Manuel Alejandro de Brito Fontes
691e8562b0
Replace watch with builder.ControllerManagedBy (#17028)
Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-03-27 10:17:25 +02:00
Manuel Alejandro de Brito Fontes
d2560e2227
Improve node-labeler (#17006)
* Improve node-labeler

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

* Requeue instead of waiting 0.blocking

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

* Requeue

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

* Cleanup error messages

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

---------

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-03-24 12:56:16 +01:00
Wouter Verlaek
f4739f7d7e
[node-labeler] Skip checks if label already present (#16833) 2023-03-13 22:34:06 +01:00
Manuel Alejandro de Brito Fontes
0f82f88449
[node-labeler] Do not return an error if the node does not exist (#16832)
* [node-labeler] Do not return an error if the node does not exist

* Increase maxConcurrentReconciles to 20
2023-03-13 19:15:06 +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