-
Notifications
You must be signed in to change notification settings - Fork 42k
Add GetPreferredAllocation() call to the v1beta1 device plugin API #92665
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
Add GetPreferredAllocation() call to the v1beta1 device plugin API #92665
Conversation
|
/assign @derekwaynecarr |
1eba5c5 to
a7f9e6a
Compare
e0a6605 to
76a6f4b
Compare
nolancon
left a comment
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.
Just one nit and a couple of questions for my own understanding.
vpickard
left a comment
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.
Looks good, few minor comment. Thanks!
f0ed490 to
2a4ce8d
Compare
nolancon
left a comment
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.
One question. Changes look good otherwise.
The details of this API can be found in: kubernetes/enhancements#1121
e4f663b to
6b7bb9b
Compare
|
nice job, tests look good too. /approve |
6b7bb9b to
98559a0
Compare
This function mimics what is already done for the conditional call to PreStartContainer() via the callPreStartContainerIfNeeded() function.
98559a0 to
2cbb158
Compare
mkumatag
left a comment
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.
Please bump the version here: https://github.com/kubernetes/kubernetes/blob/master/test/images/sample-device-plugin/VERSION
More extensive tests that exercise the allocation logic are to follow.
2cbb158 to
5bd0db0
Compare
Thanks for the review. VERSION has been updated here: cbd405d#diff-efcabe360f36f7a76db00afca0404498 |
|
/lgtm Only for |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, klueska, mkumatag The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel @derekwaynecarr already approved / lgtmd the other changes |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds support for a new, optional call in the
v1beta1device plugin API calledGetPreferredAllocation(). Because it is an optional extension (and not a change) to the API, it does not require a version bump.Details of this new API call can be found in the following KEP update: kubernetes/enhancements#1121
Please review commit-by-commit.
Which issue(s) this PR fixes:
Fixes #83483
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: