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
koord-scheduler: implement PreBindExtensions to support one-time apply patches #1317
koord-scheduler: implement PreBindExtensions to support one-time apply patches #1317
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1317 +/- ##
=======================================
Coverage 64.75% 64.75%
=======================================
Files 319 322 +3
Lines 33244 33306 +62
=======================================
+ Hits 21527 21568 +41
- Misses 10145 10174 +29
+ Partials 1572 1564 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
e8ad503
to
b43be46
Compare
/lgtm |
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
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
@@ -270,6 +283,8 @@ func (ext *frameworkExtenderImpl) RunPreBindPlugins(ctx context.Context, state * | |||
reservation = reservation.DeepCopy() | |||
reservation.Status.NodeName = nodeName | |||
|
|||
original := reservation | |||
reservation = reservation.DeepCopy() |
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.
Is there any way to avoid deepcopy the reservation twice?
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.
updated
…mmit patches Signed-off-by: Joseph <joseph.t.lee@outlook.com>
b43be46
to
d817eeb
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.
/lgtm
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.
/arrove
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: buptcozy, FillZpp, jasonliu747 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Ⅰ. Describe what this PR does
Optimize the Patch behavior of the koord-scheduler custom plugins:
DefaultPrebind
plugin to initiate a Patch request. The plugin implements the new interfacePreBindExtensions
.DefaultPreBind
will be added toKubeSchedulerConfig
by default. The plugin can be disabled by setting theDisabled
parameter, but after disabling, a new plugin implementation ofPreBindExtensions
needs to be provided.Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist
make test