1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-06 16:57:10 +00:00

Allow for rule processing in case of a missing feature

Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
This commit is contained in:
Marcin Franczyk 2025-01-08 13:58:03 +01:00
parent 1b1a47dc77
commit 60b8a2136a
No known key found for this signature in database
GPG key ID: F9AC05762F39A284

View file

@ -268,8 +268,11 @@ func evaluateFeatureMatcher(m *nfdv1alpha1.FeatureMatcher, features *nfdv1alpha1
fA, okA := features.Attributes[featureName] fA, okA := features.Attributes[featureName]
fI, okI := features.Instances[featureName] fI, okI := features.Instances[featureName]
if !okF && !okA && !okI { if !okF && !okA && !okI {
klog.V(2).InfoS("feature not available", "featureName", featureName) if failFast {
return false, nil, nil klog.V(2).InfoS("feature not available", "featureName", featureName)
return false, nil, nil
}
continue
} }
if term.MatchExpressions != nil { if term.MatchExpressions != nil {