-
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
Setting autoscaling.keda.sh/paused: "false" leads to ScaledObject/Job being paused #5215
Comments
@nappelson you are right, |
@zroubalik FWIW, I put up this PR yesterday kedacore/keda-docs#1266. If this becomes the documentation, then enforcing a boolean would become a backwards incompatible change rather than patching a bug. Given how the original documentation is worded (checking the presence of the annotation) technically enforcing a boolean would become backwards incompatible as well (even though no one likely no one is relying on the behavior of setting the annotation to I'm curious, do you think we should enforce a valid boolean value for this annotation and show some warning (while pausing the scaler) if it isn't valid? |
I would say, that:
This way we don't break backwards compatibility. @kedacore/keda-maintainers wdyt? |
It's okey to me |
Sounds good to me. @nappelson Are you willing to contribute this? |
Even if it's not |
@tomkerkhove yep I'm happy to put up a PR. May not be able to do it right away (should be by next week though).
Yep this makes sense to me! |
Note - I discovered this bug while testing code for this issue https://github.com/kedacore/keda/issues?q=is%3Aissue+is%3Aopen+paused |
I'm also experiencing this! |
I'm working around this by setting the annotation as |
Report
I noticed that setting
pauses the ScaledObject.
Expected Behavior
I would expect setting
autoscaling.keda.sh/paused: "false"
to turn off the forced pausing behavior.Actual Behavior
Instead, regardless of what
autoscaling.keda.sh/paused
is set to, the ScaledObject remains in the paused state. To resume the scaling behavior, I removed the annotation.Steps to Reproduce the Problem
autoscaling.keda.sh/paused: "false"
annotation to an existing, running ScaledObject/ScaledJobkubectl get ScaledObject
and verify that the object is in thepaused: True
stateLogs from KEDA operator
No response
KEDA Version
2.12.0
Kubernetes Version
1.27
Platform
Google Cloud
Scaler Details
Redis
Anything else?
I just noticed based on the check here -
keda/controllers/keda/scaledobject_controller.go
Line 213 in 25dc205
That being said, the use of
true
in the documentation is confusing as it implies that switching tofalse
should disable the pausing functionality.I was going to submit a PR to check the value of the annotation but I'm curious what people think the desired behavior should be.
The text was updated successfully, but these errors were encountered: