Add unit tests for scheduler's dynamic event handlers registration

This commit is contained in:
00255991
2021-09-06 16:19:34 +08:00
parent c1e69551be
commit 06a9bfbb21
3 changed files with 114 additions and 1 deletions

View File

@@ -316,6 +316,11 @@ func New(client clientset.Interface,
}
addAllEventHandlers(sched, informerFactory, dynInformerFactory, unionedGVKs(clusterEventMap))
if dynInformerFactory != nil {
dynInformerFactory.Start(stopEverything)
}
return sched, nil
}