garm/database/sql
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_test.go Add copyright header 2025-05-20 09:43:29 +00:00
controller.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
controller_test.go Add db scaleset tests 2025-05-03 22:29:41 +00:00
enterprise.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
enterprise_test.go Fix double creation of pools 2025-08-25 16:12:01 +00:00
gitea.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
gitea_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
github.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
github_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
instances.go Cache improvements, db list improvements, cleanup 2025-09-09 20:52:01 +00:00
instances_test.go Cache improvements, db list improvements, cleanup 2025-09-09 20:52:01 +00:00
jobs.go Fix erroneous calls to Job related functions 2025-08-21 18:57:42 +00:00
models.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
organizations.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
organizations_test.go Fix double creation of pools 2025-08-25 16:12:01 +00:00
pools.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
pools_test.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
repositories.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
repositories_test.go Fix double creation of pools 2025-08-25 16:12:01 +00:00
scaleset_instances.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
scalesets_test.go Add copyright header 2025-05-20 09:43:29 +00:00
sql.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
users.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
users_test.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
util.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00