Merge pull request #116465 from sourcelliu/nodeaffinity

Fix PreFilter logic problem in node affinity
This commit is contained in:
Kubernetes Prow Robot
2023-03-14 10:40:52 -07:00
committed by GitHub
2 changed files with 10 additions and 6 deletions

View File

@@ -537,6 +537,11 @@ func TestNodeAffinity(t *testing.T) {
Operator: v1.NodeSelectorOpIn,
Values: []string{"node1"},
},
{
Key: metav1.ObjectNameField,
Operator: v1.NodeSelectorOpIn,
Values: []string{"node2"},
},
},
},
{