mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Use PodInfo instead of Pod for nominatedPods and QueuedPodInfo
This commit is contained in:
@@ -357,7 +357,7 @@ func TestSchedulerScheduleOne(t *testing.T) {
|
||||
gotError = err
|
||||
},
|
||||
NextPod: func() *framework.QueuedPodInfo {
|
||||
return &framework.QueuedPodInfo{Pod: item.sendPod}
|
||||
return &framework.QueuedPodInfo{PodInfo: framework.NewPodInfo(item.sendPod)}
|
||||
},
|
||||
Profiles: profile.Map{
|
||||
testSchedulerName: fwk,
|
||||
@@ -838,7 +838,7 @@ func setupTestScheduler(queuedPodStore *clientcache.FIFO, scache internalcache.C
|
||||
SchedulerCache: scache,
|
||||
Algorithm: algo,
|
||||
NextPod: func() *framework.QueuedPodInfo {
|
||||
return &framework.QueuedPodInfo{Pod: clientcache.Pop(queuedPodStore).(*v1.Pod)}
|
||||
return &framework.QueuedPodInfo{PodInfo: framework.NewPodInfo(clientcache.Pop(queuedPodStore).(*v1.Pod))}
|
||||
},
|
||||
Error: func(p *framework.QueuedPodInfo, err error) {
|
||||
errChan <- err
|
||||
|
||||
Reference in New Issue
Block a user