emit correct event when unbound delay binding claim is used by pod

This commit is contained in:
Yecheng Fu
2020-05-26 21:39:12 +08:00
parent 17930385cf
commit 32df4300ef
4 changed files with 99 additions and 15 deletions

View File

@@ -657,6 +657,7 @@ func runSyncTests(t *testing.T, tests []controllerTest, storageClasses []*storag
podIndexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{})
for _, pod := range pods {
podIndexer.Add(pod)
ctrl.podIndexer.Add(pod)
}
ctrl.podLister = corelisters.NewPodLister(podIndexer)