garm/runner
Gabriel 23f92bc335
Add runner install template management (#525)
* Add template api endpoints

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Added template bypass

Pools and scale sets will automatically migrate to the new template
system for runner install scripts. If a pool or a scale set cannot be
migrate, it is left alone. It is expected that users set a runner install
template manually for scenarios we don't yet have a template for (windows
on gitea for example).

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Integrate templates with pool create/update

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Add webapp integration with templates

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Add unit tests

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Populate all relevant context fields

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Update dependencies

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Fix lint

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Validate uint

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Add CLI template management

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Some editor improvements and bugfixes

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Fix scale set return values post create

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

* Fix template websocket events filter

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>

---------

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-09-23 13:46:27 +03:00
..
common Ensure scale set exists 2025-08-23 18:55:08 +00:00
metrics Add a rudimentary filter option when listing entities 2025-06-18 21:23:34 +00:00
mocks Add SPA UI for GARM 2025-08-16 09:09:13 +00:00
pool Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
providers Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
common.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
common_test.go Add copyright header 2025-05-20 09:43:29 +00:00
enterprises.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
enterprises_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
gitea_credentials.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
gitea_endpoints.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
github_credentials.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
github_endpoints.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
interfaces.go Add SPA UI for GARM 2025-08-16 09:09:13 +00:00
metadata.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
metadata_test.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
organizations.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
organizations_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
pools.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
pools_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
repositories.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
repositories_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
runner.go Cache improvements, db list improvements, cleanup 2025-09-09 20:52:01 +00:00
scalesets.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
templates.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
templates_test.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
types.go Move code to external package 2023-07-21 15:34:18 +00:00