1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/pkg
Markus Lehtonen 36341bf4c7 apis/nfd: empty match expression set returns no features for templates
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.
2022-03-24 11:43:42 +02:00
..
api/feature pkg/api/feature: document exported functions 2021-12-01 10:30:17 +02:00
apihelper Additional Lint Fixes in Codebase (#779) 2022-03-02 17:12:46 -08:00
apis/nfd/v1alpha1 apis/nfd: empty match expression set returns no features for templates 2022-03-24 11:43:42 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
generated pkg/generated: add code for interacting with CRD API 2021-11-17 18:51:34 +02:00
kubeconf topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
labeler grpc: extend the API to send raw features 2021-11-16 17:32:28 +02:00
nfd-client Additional Lint Fixes in Codebase (#779) 2022-03-02 17:12:46 -08:00
nfd-master Additional Lint Fixes in Codebase (#779) 2022-03-02 17:12:46 -08:00
podres topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
resourcemonitor topologyupdater: Prevent crash with incorrect node id 2022-03-15 11:16:02 +02:00
topologypolicy topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
topologyupdater Update auto-generated code 2021-09-21 13:37:36 +03:00
utils tls: require min TLS version 1.3 2022-02-25 10:08:37 +02:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00