Skip to content

Commit 9c1d4f2

Browse files
committed
Fix node selector matching logic
1 parent 4fb3e0a commit 9c1d4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/plugins/resource_fungibility/resource_fungibility.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (rf *ResourceFungibility) Filter(ctx context.Context, cycleState *framework
182182

183183
for _, flavor := range state.inferenceFlavors {
184184
nodeLabels := labels.Set(node.Labels)
185-
if !flavor.nodeSelectors.Matches(nodeLabels) {
185+
if flavor.nodeSelectors.Matches(nodeLabels) {
186186
// At least one flavor matches with the node, success then.
187187
return nil
188188
}

0 commit comments

Comments
 (0)