garm/client
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 Handle garm-agent tools upload/sync 2026-02-08 00:27:47 +02:00
controller_info Update go-swagger and run generate 2024-05-23 10:24:44 +00:00
credentials Add Gitea endpoints and credentials 2025-05-14 00:34:54 +00:00
endpoints Add Gitea endpoints and credentials 2025-05-14 00:34:54 +00:00
enterprises Add a rudimentary filter option when listing entities 2025-06-18 21:23:34 +00:00
first_run Update go-swagger and run generate 2024-05-23 10:24:44 +00:00
instances Add runner rotate ability to CLI 2026-02-09 00:30:57 +02:00
jobs Update go-swagger and run generate 2024-05-23 10:24:44 +00:00
login Update go-swagger and run generate 2024-05-23 10:24:44 +00:00
metrics_token Update go-swagger and run generate 2024-05-23 10:24:44 +00:00
objects Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
organizations Add a rudimentary filter option when listing entities 2025-06-18 21:23:34 +00:00
pools Update go-swagger and run generate 2024-05-23 10:24:44 +00:00
providers Update go-swagger and run generate 2024-05-23 10:24:44 +00:00
repositories Add a rudimentary filter option when listing entities 2025-06-18 21:23:34 +00:00
scalesets Add API endpoint for some scaleset ops 2025-05-03 22:29:40 +00:00
templates Add agent mode 2026-02-08 00:27:47 +02:00
tools Use separate endpoints to list tools 2026-02-08 16:00:50 +02:00
garm_api_client.go Add agent mode 2026-02-08 00:27:47 +02:00