mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-07 09:43:15 +00:00
feature(scheduler): won't run Filter if PreFilter returned a Skip status
This commit is contained in:
@@ -44,10 +44,6 @@ func TestNodeAffinity(t *testing.T) {
|
||||
args config.NodeAffinityArgs
|
||||
disablePreFilter bool
|
||||
}{
|
||||
{
|
||||
name: "no selector",
|
||||
pod: &v1.Pod{},
|
||||
},
|
||||
{
|
||||
name: "missing labels",
|
||||
pod: st.MakePod().NodeSelector(map[string]string{
|
||||
@@ -285,6 +281,7 @@ func TestNodeAffinity(t *testing.T) {
|
||||
labels: map[string]string{
|
||||
"foo": "bar",
|
||||
},
|
||||
wantPreFilterStatus: framework.NewStatus(framework.Skip),
|
||||
},
|
||||
{
|
||||
name: "Pod with Affinity but nil NodeSelector will schedule onto a node",
|
||||
@@ -300,6 +297,7 @@ func TestNodeAffinity(t *testing.T) {
|
||||
labels: map[string]string{
|
||||
"foo": "bar",
|
||||
},
|
||||
wantPreFilterStatus: framework.NewStatus(framework.Skip),
|
||||
},
|
||||
{
|
||||
name: "Pod with multiple matchExpressions ANDed that matches the existing node",
|
||||
|
||||
Reference in New Issue
Block a user