feat(usb): NodeUSBDevice controller#1913
Draft
danilrwx wants to merge 3 commits intofeat/dra-usbipfrom
Draft
Conversation
29be831 to
b276ce0
Compare
b276ce0 to
9b7436f
Compare
127101a to
7dadda9
Compare
fc3f7d8 to
3a040c2
Compare
dd2ef4f to
fce3c4d
Compare
a3a9f61 to
bdca1c1
Compare
c14750a to
ef68a6b
Compare
507ad7c to
05fa6a4
Compare
089ce17 to
e1b1402
Compare
05fa6a4 to
d3701de
Compare
e1b1402 to
0484325
Compare
d3701de to
435bc30
Compare
0484325 to
8160a37
Compare
435bc30 to
6969fd6
Compare
50282f6 to
f853292
Compare
280a918 to
5551f93
Compare
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> upd Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> fix Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
25e93d6 to
7666f8c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a new CRD
NodeUSBDeviceand controller for managing USB devices at the node level in the cluster.Why do we need it, and what problem does it solve?
The DRA (Dynamic Resource Allocation) system automatically discovers USB devices on cluster nodes and creates ResourceSlice resources. However, there was no convenient mechanism for managing these devices at the Kubernetes level:
Solution:
NodeUSBDevice provides an abstraction layer between physical USB devices on nodes (represented via ResourceSlice) and logical USBDevice resources in namespaces. This enables:
kubectl get nodeusbdevicesspec.assignedNamespaceWhat is the expected result?
Readycondition correctly reflects device presence on the nodeassignedNamespaceis set, a USBDevice is automatically created in the specified namespaceassignedNamespaceis changed or cleared, corresponding USBDevice resources are correctly deletedChecklist
Changelog entries