-
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
Fix issue where paused annotation being set to false still leads to scaled objects/jobs being paused #5257
Fix issue where paused annotation being set to false still leads to scaled objects/jobs being paused #5257
Conversation
Thank you for your contribution! 🙏 We will review your PR as soon as possible. While you are waiting, make sure to:
Learn more about: |
cf63b33
to
78a7479
Compare
…caled objects/jobs being paused commit 9eafdb6 Merge: 78a7479 bd91050 Author: Nate Appelson <nate.appelson@regrow.ag> Date: Tue Dec 5 21:30:08 2023 -0500 Merge branch 'main' of github.com:nappelson/keda into 5215-fix-paused-annotation Signed-off-by: Nate Appelson <nate.appelson@regrow.ag> commit 78a7479 Author: Nate Appelson <nate.appelson@regrow.ag> Date: Tue Dec 5 21:15:52 2023 -0500 Empty-Commit to trigger CI commit d4530bd Author: Nate Appelson <nate.appelson@regrow.ag> Date: Tue Dec 5 21:00:11 2023 -0500 Fix issue where paused annotation being set to false still leads to scaled objects/jobs being paused Signed-off-by: Nate Appelson <nate.appelson@regrow.ag> Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
9eafdb6
to
8cc7b9e
Compare
@zroubalik curious if you have thoughts on why the The |
Most likely a flaky test, pls disregard this one. |
Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
…a into 5215-fix-paused-annotation Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
/run-e2e internals |
@zroubalik thanks for running these - curious why they failed remotely. I also see one of the controller tests is failing. I'll fix that shortly! |
|
The problem seems to be in pause_scaledjob/pause_scaledjob_test.go let me rerun the test. |
/run-e2e pause_scaledjob |
For unit tests it is as you said:
Could you please also rebase your PR? We have merged some annotations based PR: #5282 |
…annotation Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
9f13d3f
to
bf27e6a
Compare
@zroubalik this should be ready again. Appreciate your patience. |
/run-e2e internals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks a lot for the contribution! Great job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think you can also update docs for 2.13 mentioning that true/false works with the annotation?
Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
kedacore/keda-docs#1283 just created this |
…annotation Signed-off-by: Nate Appelson <nate.appelson@regrow.ag>
…caled objects/jobs being paused (kedacore#5257) Signed-off-by: Nate Appelson <nate.appelson@regrow.ag> Signed-off-by: anton.lysina <alysina@gmail.com>
This PR adds "bool parsing" logic to the
paused
annotation. Keda docs suggests pausing scaledjobs/objects by setting the paused annotation totrue
. When I tried resuming the object by setting the annotation tofalse
, I noticed the object remained paused.Just for reference (https://go.dev/src/strconv/atob.go)
Checklist
Fixes #5215