-
Notifications
You must be signed in to change notification settings - Fork 246
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
Allow specifying different label templates for different PCI devices #508
Comments
@zvonkok FYI |
I actually thought about this myself when working on the prototype for extending the custom source (#464). I.e. a more flexible PCI device labeling scheme might be needed. But this was a poor fit for the It could be something like the
But, we need to think is this really needed. In your case (a single device) a custom rule could be the right solution. |
@marquiz I think this could also help in the multiple instance issue we had. Since the GPU and Network operators need different/same PCI labels aka configs compared to the default one. The GPU operator could have cc @adrianchiris what is the exact difference between the two configs of the two operators? |
/assign |
both use the same label format, Now if GPU operator starts using this flag then the user can deploy its own NFD and as long as the labels (specifically their value) dont conflict we should be fine. @kpouget for now if you deploy your instance of NFD with Having one NFD would require to allow a more flexible labeling for PCI. If its a specific PCI device then a custom label might fit the bill e.g
|
@adrianchiris We do not want to run two instances in an OpenShift cluster, I think this will "confuse" the user and make UX hard. @marquiz We also merged the PR for per node settings, if we could "generalize" the PCI labelling maybe we can leverage the per node feature to have "better" PCI labels where needed. |
We could also add |
Hmm, maybe we should extend the default whitelist to contain network devices, too 🤔 |
this would solve the immediate problem of running both operators with a single NFD instance. |
It's not that straightforward as I explained: custom rule currently are only about creating one label per rule. But I was pondering this, too, as it would make everything more flexible. One idea that I just came up with would be adding something like
This would currently make most sense for PCI and USB but could also be extended to others (like kconfig) if seen useful. /remove-kind bug |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
I now submitted a draft PR that should solve this issue (#550). It allows templating of the names of custom rules, making it possible to generate a custom label for each matching pci device. |
@kpouget #550 should have you covered. An example nfd-worker config for creating "" and "-" labels of all Intel PCI devices on the system:
/close |
@marquiz: Closing this issue. 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. |
I am currently working with a custom PCI device, identified by a specific
vendor
anddevice
ID.I would like to be able to specify a particular set of fields for this device, eg
deviceLabelFields: [vendor, device]
and at the same time, I want to keep the existing labeling untouched, in particular I don't want the GPU PCI cards labels to change, as they are mandatory for the deployment of the GPU Operator:
The text was updated successfully, but these errors were encountered: