Skip to content

Commit 60b8a21

Browse files
committed
Allow for rule processing in case of a missing feature
Signed-off-by: Marcin Franczyk <[email protected]>
1 parent 1b1a47d commit 60b8a21

File tree

1 file changed

+5
-2
lines changed
  • pkg/apis/nfd/nodefeaturerule

1 file changed

+5
-2
lines changed

pkg/apis/nfd/nodefeaturerule/rule.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,11 @@ func evaluateFeatureMatcher(m *nfdv1alpha1.FeatureMatcher, features *nfdv1alpha1
268268
fA, okA := features.Attributes[featureName]
269269
fI, okI := features.Instances[featureName]
270270
if !okF && !okA && !okI {
271-
klog.V(2).InfoS("feature not available", "featureName", featureName)
272-
return false, nil, nil
271+
if failFast {
272+
klog.V(2).InfoS("feature not available", "featureName", featureName)
273+
return false, nil, nil
274+
}
275+
continue
273276
}
274277

275278
if term.MatchExpressions != nil {

0 commit comments

Comments
 (0)