feat(usb): NodeUSBDevice controller#1913
Draft
danilrwx wants to merge 31 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
6969fd6 to
b4005ab
Compare
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
7dd193b to
c01601c
Compare
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
f21752a to
ea48c23
Compare
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
430350c to
bde98f2
Compare
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
1becb2f to
caa4047
Compare
d040af2 to
7a91bc1
Compare
280a918 to
5551f93
Compare
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
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
9eeecf9 to
e8eb86c
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