Merge pull request #87165 from alculquicondor/cleanup/mv_snapshot_2

Move Snapshot to internal/cache
This commit is contained in:
Kubernetes Prow Robot
2020-01-17 17:14:07 -08:00
committed by GitHub
51 changed files with 193 additions and 257 deletions

View File

@@ -774,9 +774,9 @@ func cleanupPodsInNamespace(cs clientset.Interface, t *testing.T, ns string) {
func waitForSchedulerCacheCleanup(sched *scheduler.Scheduler, t *testing.T) {
schedulerCacheIsEmpty := func() (bool, error) {
snapshot := sched.Cache().Snapshot()
dump := sched.Cache().Dump()
return len(snapshot.Nodes) == 0 && len(snapshot.AssumedPods) == 0, nil
return len(dump.Nodes) == 0 && len(dump.AssumedPods) == 0, nil
}
if err := wait.Poll(time.Second, wait.ForeverTestTimeout, schedulerCacheIsEmpty); err != nil {