-
Notifications
You must be signed in to change notification settings - Fork 1.6k
KEP 5075: update API description, add alternatives, update test plan #5449
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
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sunya-ch The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @sunya-ch. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
235d8fb
to
8e4c175
Compare
8e4c175
to
0d67b6d
Compare
f8449d0
to
732c9b5
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.
Started reviewing but I think it needs some rework for the most recent changes, so I stopped pretty early. Once all the changes from the implementation phase are incorporated, I will take another look.
When such a policy is specified, the device may be allocated to multiple independent requests, up to its total capacity, | ||
with the platform enforcing the policy and managing allocations on each request accordingly. | ||
In contrast, if no sharing policy is defined, the device is treated as freely shareable and not dedicated to any specific request. | ||
As a result, the resource without a sharing policy imposes no constraints on how new requests are processed. | ||
In contrast, if no request policy is defined, the device is treated as freely shareable and not dedicated to any specific request. |
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.
This is no longer, true, right?
"No request policy" is now equivalent to "a request policy with a default of the full capacity value of the device", such that even for a multi-allocatable device, having no requests and no request policy means it will be exclusively allocated. This is safest as it is most consistent with pre-1.34 behavior, and also just means that the driver author needs to explicitly create a policy if they want something different.
See
@@ -122,11 +129,11 @@ and that resource claim has allocated the device. | |||
With this KEP, independent resource claims (and/or requests within a claim) can allocate shares of the same underlying device. | |||
This enables resource sharing across pods that are completely unrelated, potentially even across different namespaces. | |||
|
|||
Additionally, if a device supports sharing, its resource (capacity) can be managed through a defined sharing policy. | |||
Additionally, if a device supports sharing, its resource (capacity) can be managed through a defined request policy. | |||
When such a policy is specified, the device may be allocated to multiple independent requests, up to its total capacity, |
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.
this needs to be re-written now that allow multiple allocations and request policy are decoupled.
+1 to folding in updates to the field names and behavior made during implementation review |
1d95963
to
fae645e
Compare
…, and test plan Signed-off-by: Sunyanan Choochotkaew <[email protected]>
fae645e
to
4daa7a5
Compare
@liggitt @johnbelamaric I updated the description and API according to the recent API in the implementation. |
Other comments:
The changes are related to suggestions from @pohly @LionelJouin @mortent @liggitt @lmktfy.
What not included yet are: