-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Extend the PodResources API to include resources allocated by DRA #115847
Extend the PodResources API to include resources allocated by DRA #115847
Conversation
Hi @moshe010. 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/test-infra repository. |
/assign @ffromani @swatisehgal @bart0sh @klueska I need to add unit tests and e2e tests. I would appreciate reviews to make sure we are aligned |
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.
We need to distinguish two topics here.
- adding checkpoint to DRA. I'm still learning my way into DRA so I can't say. I'd defer comments to DRA developers (which are already tagged) and trust their judgement. IF DRA would benefit from adding checkpoint, I'd do in a separate PR, but really, I trust their call here.
- podresources API proper. Pretty much straightforward, the direction seems good with only minor things spotted so far
I'm aware podresources e2e tests need some work and I'm on it in the coming days/weeks, it will be needed to re-graduate the feature to GA on it, which is one of my goals for 1.27/28
/triage accepted |
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.
Devices: []*podresourcesapi.ContainerDevices{}, | ||
CpuIds: cpus, | ||
Memory: memory, | ||
DynamicResources: draDevs, |
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.
can be postponed.
@@ -515,11 +753,54 @@ func equalListResponse(respA, respB *podresourcesapi.ListPodResourcesResponse) b | |||
if !equalContainerDevices(cntA.Devices, cntB.Devices) { | |||
return false | |||
} | |||
|
|||
if !euqalDynamicResources(cntA.DynamicResources, cntB.DynamicResources) { |
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.
let's fix the typo (cosmetic only, because the typo is used consistently!) before beta. Not blocking now.
LGTM label has been added. Git tree hash: 89ea6386ced8e5f5c4a101d7f00b21d338565bcf
|
/hold because:
|
/retest |
/test pull-kubernetes-unit unrelated failure |
Thanks for all your hard work on this @moshe010 |
@klueska: /release-note-edit must be used with a release note block. In response to this:
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/test-infra repository. |
@klueska: /release-note-edit must be used with a release note block. In response to this:
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/test-infra repository. |
@klueska: /release-note-edit must be used with a release note block. In response to this:
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/test-infra repository. |
/assign dchen1107 derekwaynecarr |
/hold cancel Kevin reviewed |
/approve new alpha feature gates look good to me! |
/approve the feature gate |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, dims, klueska, moshe010 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 |
follow-up PR #116742 to address the no-blocking issues |
What type of PR is this?
/kind feature
What this PR does / why we need it:
It extend the kubelet PodResources API List() method to return Dynamic Resources and it add Get() to query specific pod
Which issue(s) this PR fixes:
KEP: kubernetes/enhancements#3695
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: