Skip to content

Commit

Permalink
Fix runner for repositories not created
Browse files Browse the repository at this point in the history
  • Loading branch information
Tereius committed Aug 4, 2024
1 parent 1ec35aa commit 68b8c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner-autoscaler/pkg/srv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 68b8c6f

Please sign in to comment.