-
Notifications
You must be signed in to change notification settings - Fork 276
Description
What would you like to be added:
Add logic to filter the "features" that gets added to the nodefeature object.
Features: *features, |
Why is this needed:
The filter logic currently available, filters the labels that gets added to the node. But, the nodefeature object is still big, with all the feature attributes added to the NodeFeature.
:
For example, we added labelSource and label white lists to get the feature flags for these PCI devices as below:
labels:
feature.node.kubernetes.io/pci-0300_1a03.present: "true"
But, the pci devices and attributes in the NodeFetaure is quite large and lists hundreds of devices we don't care about. We wanted to support this feature.
Another example:
Obviously the ability to filter would be different for each feature. As another example, the kernel feature is also quite large (several thousand lines), when we may only care about one or two flags for labels - kernel version in our case.
This means we need to enable kernel feature, which is very large as well.