Split scheduler's PodInfo into two types, PodInfo and PodQueueInfo

This commit is contained in:
Abdullah Gharaibeh
2020-04-20 20:36:26 -04:00
parent 4820b6cbdb
commit a151682887
13 changed files with 167 additions and 160 deletions

View File

@@ -328,7 +328,7 @@ func TestDefaultErrorFunc(t *testing.T) {
&v1.Node{ObjectMeta: metav1.ObjectMeta{Name: "bar"}},
&v1.Node{ObjectMeta: metav1.ObjectMeta{Name: "foo"}}
testPodInfo := &framework.PodInfo{Pod: testPod}
testPodInfo := &framework.QueuedPodInfo{Pod: testPod}
client := fake.NewSimpleClientset(&v1.PodList{Items: []v1.Pod{*testPod}}, &v1.NodeList{Items: []v1.Node{*nodeBar}})
stopCh := make(chan struct{})
defer close(stopCh)