Skip to content
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

FIX calling Node[Un]PrepareResources #9

Conversation

bart0sh
Copy link

@bart0sh bart0sh commented Aug 8, 2022

Reimplemented a logic of calling Node[Un]PrepareResources APIs such as they're now called once per resource claim.
Previously they're called for every pod that references a resource.

Rebased on top of the recent target branch by request from @pohly

@pohly Thank you for pointing it out to me!

@pohly
Copy link
Owner

pohly commented Aug 9, 2022

If you rebase on top of 7119d09 then I can manually replace your old commits with the new ones.

bart0sh and others added 3 commits August 9, 2022 11:13
If resource is not found in the DRA manager cache Kubelet should
not run a container. This should be considered as fatal error
because CDI injection can't happen without this.
- added pod referencing external resource claim
- used ubuntu images for pod-external and pod-inline
- run commands showing device nodes, mounts and env vars
- set pod restart policy to Never
- renamed shared-resource-claim.yaml -> pod-shared.yaml

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
@bart0sh bart0sh force-pushed the PR005-pohly-dynamic-resource-allocation branch from 801c04b to 9724ac0 Compare August 9, 2022 08:25
@bart0sh
Copy link
Author

bart0sh commented Aug 9, 2022

@pohly done, PTAL

@pohly pohly merged commit 233abf2 into pohly:dynamic-resource-allocation Aug 9, 2022
@pohly
Copy link
Owner

pohly commented Aug 9, 2022

Note that I am not really doing any deep code review. I'm just merging your commits when the described change makes sense.

@bart0sh
Copy link
Author

bart0sh commented Aug 9, 2022

yep, understood. I hope @klueska will review Kubelet changes at some point. I'm still going to at least implement checkpointing and cover the code with unit tests before that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants