From ea06001819f2af2aa486d3ce0c395b9544a5485d Mon Sep 17 00:00:00 2001 From: Alex Kulikovskikh Date: Wed, 29 Sep 2021 21:36:59 -0400 Subject: [PATCH] fix: scaling issue based on `workflow_job` event (#850) This PR fix scaling issue based on `workflow_job` event discussed in #819 --- controllers/horizontal_runner_autoscaler_webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/horizontal_runner_autoscaler_webhook.go b/controllers/horizontal_runner_autoscaler_webhook.go index af7fcab9..d58d82f5 100644 --- a/controllers/horizontal_runner_autoscaler_webhook.go +++ b/controllers/horizontal_runner_autoscaler_webhook.go @@ -542,7 +542,7 @@ HRA: // Ensure that the RunnerDeployment-managed runners have all the labels requested by the workflow_job. for _, l := range labels { var matched bool - for _, l2 := range rd.Spec.Template.Labels { + for _, l2 := range rd.Spec.Template.Spec.Labels { if l == l2 { matched = true break