Skip to content

Commit

Permalink
Remove duplicate self-hosted condition (#1016)
Browse files Browse the repository at this point in the history
Duplicate condition caused after merge of #953 and #1012
  • Loading branch information
fgalind1 committed Dec 21, 2021
1 parent 4ebec38 commit 608c569
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions controllers/horizontal_runner_autoscaler_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,6 @@ HRA:

// Ensure that the RunnerSet-managed runners have all the labels requested by the workflow_job.
for _, l := range labels {
if l == "self-hosted" {
continue // label is automatically added to self-hosted runners
}
var matched bool

// ignore "self-hosted" label as all instance here are self-hosted
Expand Down Expand Up @@ -689,9 +686,6 @@ HRA:

// Ensure that the RunnerDeployment-managed runners have all the labels requested by the workflow_job.
for _, l := range labels {
if l == "self-hosted" {
continue // label is automatically added to self-hosted runners
}
var matched bool

// ignore "self-hosted" label as all instance here are self-hosted
Expand Down

0 comments on commit 608c569

Please sign in to comment.