-
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
feat: Provide support for explicitly pausing autoscaling of ScaledJobs #4558
feat: Provide support for explicitly pausing autoscaling of ScaledJobs #4558
Conversation
2fe8ba5
to
348f197
Compare
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.
Added a few concerns, but nice work!
cf20ec6
to
a676efb
Compare
/run-e2e |
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.
It would be ideal to base the ScaledJob implementation on this ScaledObject approach:
a676efb
to
a99f8ea
Compare
Agreed, this is a nice approach and have adopted it here. Relies on the client manager to check annotation events to re-run the reconcile logic. |
/run-e2e internal |
356050d
to
24ecf33
Compare
/run-e2e internal |
/run-e2e internal |
/run-e2e pause_scaledjob |
24ecf33
to
2766aea
Compare
I think the e2e tests are failing because the annotation command doesn't hit the namespace the test runs in, let me push a fix up for that. |
--- Accreditation --- Original PR: kedacore#3828 Borrows from the work originally implemented by: https://github.com/keegancwinchester Note: I would have loved to have pulled the commit from the original branch, but I could not be able to. Documentation MR by original implementor: kedacore/keda-docs#932 --- Fixes --- Fixes # kedacore#3656 --- PR Notes --- Introduce annotation to pause ScaledJobs. Signed-off-by: BenJ <benjamin.jessop@fluxfederation.com>
2766aea
to
c1980b4
Compare
/run-e2e pause_scaledjob |
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, great job!
@flux-benj could you please fix the changelog and also address the comment on the docs PR? Then we can go ahead and merge this PR. |
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
--- Accreditation ---
Original PR: #3828
Borrows from the work originally implemented by: https://github.com/keegancwinchester
Note: I would have loved to have pulled the commit from the original branch, but I could not be able to.
Documentation MR by original implementor: kedacore/keda-docs#932
--- Fixes ---
Fixes #3303
--- PR Notes ---
Introduce annotation to pause ScaledJobs.
Checklist