Closed knelasevero closed 1 year ago
@a7i @damemi @ingvagabund
Both RunDeschedulerLoop and RunProfiles can be turned into methods with an PoC new data type definition for the framework. At the end a user is expected to invoke NewFramework or a similar function that will follow with fmwrk.DescheduleOnce(...) or similar.
I think before that we would need to properly transform Descheduler into a kubernetes controller to stop using wait.NonSlidingUntil and wire the other things around. (In short - I think it should come with another PR/PRs)
I think before that we would need to properly transform Descheduler into a kubernetes controller to stop using wait.NonSlidingUntil and wire the other things around. (In short - I think it should come with another PR/PRs)
Ok. Let's focus on:
I think before that we would need to properly transform Descheduler into a kubernetes controller to stop using wait.NonSlidingUntil and wire the other things around. (In short - I think it should come with another PR/PRs)
Ok. Let's focus on:
- making the new functions internal so we can revisit the parameters later
- reducing the cost of re-creating a profile for each extension point so it can be later extended with other batch of EPs
Just adding a comment to say I decided to go back and turn the functions into methods with an PoC new data type
. I am calling it Descheduler, and we have NewDescheduler to get an instance of it populated with all needed stuff, and RunDeschedulerLoop and RunProfiles as methods under it.
/assign @ingvagabund
/cc @damemi @a7i
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from ingvagabund. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
/label tide/merge-method-squash
@knelasevero feel free to cherry-pick from https://github.com/kubernetes-sigs/descheduler/pull/1177 so we can merge the PR. The rest looks good to me.
/test all
@knelasevero: The following test failed, say /retest
to rerun all failed tests or /retest-required
to rerun all mandatory failed tests:
Test name | Commit | Details | Required | Rerun command |
---|---|---|---|---|
pull-descheduler-verify-master | cf2d43d19d7459be822108750386a0aad6451927 | link | true | /test pull-descheduler-verify-master |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
Closed in favor of https://github.com/kubernetes-sigs/descheduler/pull/1177. @knelasevero thank you for all the help and work here.
Also generalized RunDeschedulerLoop and RunProfiles for when/if we start working on the descheduler/kube-scheduler simulator.
fix #979