garm/workers/scaleset
Gabriel Adrian Samfira 80e042ee88 Add runner rotate ability to CLI
This change adds a new "generation" field to pools, scalesets and
runners. The generation field is inherited by runners from scale sets
or pools at the time of creation.

The generation field on scalesets and pools is incremented when the
pool or scale set is updated in a way that might influence how runners
are created (flavor, image, specs, runner groups, etc).

Using this new field, we can determine if existing runners have diverged
from the settings of the pool/scale set that spawned them.

In the CLI we now have a new set of commands available for both
pools and scalesets that lists runners, with an optional --outdated
flag and a new "rotate" flag that removes all idle runners. Optionally
the --outdated flag can be passed to the rotate command to only remove
outdated runners.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2026-02-09 00:30:57 +02:00
..
controller.go Some slight cleanup 2025-08-31 21:58:42 +00:00
controller_watcher.go Ensure scale set exists 2025-08-23 18:55:08 +00:00
interfaces.go Add copyright header 2025-05-20 09:43:29 +00:00
scaleset.go Add runner rotate ability to CLI 2026-02-09 00:30:57 +02:00
scaleset_helper.go Handle new jobID for scale sets 2025-07-18 08:20:50 +00:00
scaleset_listener.go Scale sets stability fixes 2025-08-28 11:53:40 +00:00
util.go Add copyright header 2025-05-20 09:43:29 +00:00