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:
parent
1b1a47dc77
commit
60b8a2136a
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue