From 68b8c6f6176301cb7c092fb36d0b4c7324defa4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stresing?= Date: Sun, 4 Aug 2024 18:38:47 +0200 Subject: [PATCH] Fix runner for repositories not created --- runner-autoscaler/pkg/srv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner-autoscaler/pkg/srv.go b/runner-autoscaler/pkg/srv.go index be0565c..e182275 100644 --- a/runner-autoscaler/pkg/srv.go +++ b/runner-autoscaler/pkg/srv.go @@ -551,7 +551,7 @@ func (s *Autoscaler) handleCreateVm(ctx *gin.Context) { s.createVmWithJitConfig(ctx, fmt.Sprintf(RUNNER_ORG_JIT_CONFIG_ENDPOINT, src.Name), string(data), s.conf.RunnerGroupId) case TypeRepository: log.Infof("Using jit config for runner registration for repository: %s", src.Name) - s.createVmWithJitConfig(ctx, fmt.Sprintf(RUNNER_REPO_JIT_CONFIG_ENDPOINT, src.Name), string(data), 1) + s.createVmWithJitConfig(ctx, fmt.Sprintf(RUNNER_REPO_JIT_CONFIG_ENDPOINT, src.Name), string(data), 0) // For repositories there is an implicit runner group with id 0 default: log.Errorf("Missing source type for %s", src.Name) ctx.Status(http.StatusBadRequest)