mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
36341bf4c7
This patch changes a rare corner case of custom label rules with an empty set of matchexpressions. The patch removes a special case where an empty match expression set matched everything and returned all feature elements for templates to consume. With this patch the match expression set logically evaluates all expressions in the set and returns all matches - if there are no expressions there are no matches and no matched features are returned. However, the overall match result (determining if "non-template" labels will be created) in this special case will be "true" as before as none of the zero match expressions failed. The former behavior was somewhat illogical and counterintuitive: having 1 to N expressions matched and returned 1 to N features (at most), but, having 0 expressions always matched everything and returned all features. This was some leftover proof-of-concept functionality (for some possible future extensions) that should have been removed before merging. |
||
---|---|---|
.. | ||
api/feature | ||
apihelper | ||
apis/nfd/v1alpha1 | ||
cpuid | ||
generated | ||
kubeconf | ||
labeler | ||
nfd-client | ||
nfd-master | ||
podres | ||
resourcemonitor | ||
topologypolicy | ||
topologyupdater | ||
utils | ||
version |