-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github-runner-scaler always scales with default labels #6127
Comments
Yeah, current implementation is evaluation if the job doesn't contain the given labels and neither the default labels keda/pkg/scalers/github_runner_scaler.go Line 30 in 85d4dca
keda/pkg/scalers/github_runner_scaler.go Lines 614 to 621 in 85d4dca
I guess that in this case, the default label is accepted and that's why you see the behaviour. Are you willing to open a PR supporting to not take them into account @leevilehtonen ? FYI @Eldarrin |
@JorTurFer Could be doable :) What do you think about the fix itself, like removing the second condition could be in a way breaking change for those who have been relying on to this behaviour. So would it actually make sense to create a new option similar that is in runner registration (--no-default-labels: |
Yeah, we should be backwards compatible if that's doable. |
Report
Current github-runner-scaler implementation seems to scale the runner always with default labels like
self-hosted
even when explicit labels are provided forlabels
configuration. Either this seems like an undocumented feature or a bug in the implementation, as the current documentation states:Either way, it should be possible to not scale on the default labels as it's possible to register a self hosted runner without default labels by providing
--no-default-labels
option (and optional explicit labels) when registering the runner withconfig.sh
. (With the current logic it leads to a case where github-runner-scaler scales always with default labels but runner is not registered to pick up jobs with default labels).Expected Behavior
github-runner-scaler respects the provided labels only and does not consider any default labels then
Actual Behavior
github-runner-scaler uses both the provided labels as well as default labels
Steps to Reproduce the Problem
labels
asfoo
runs-on: self-hosted
run-on: foo
Logs from KEDA operator
KEDA Version
2.14.0
Kubernetes Version
None
Platform
Microsoft Azure
Scaler Details
Github Runner Scaler
Anything else?
No response
The text was updated successfully, but these errors were encountered: