Skip to content

Ability to white list feature attributes on the NodeFeature object #2026

@yavinash007

Description

@yavinash007

What would you like to be added:

Add logic to filter the "features" that gets added to the nodefeature object.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions