Collapse duplicate informer creation paths

This commit is contained in:
Dominika Hodovska
2016-08-04 09:02:13 +02:00
parent 3afd822537
commit 816f6d32ca
14 changed files with 40 additions and 129 deletions

View File

@@ -113,7 +113,7 @@ func NewEndpointController(podInformer framework.SharedIndexInformer, client *cl
// NewEndpointControllerFromClient returns a new *EndpointController that runs its own informer.
func NewEndpointControllerFromClient(client *clientset.Clientset, resyncPeriod controller.ResyncPeriodFunc) *EndpointController {
podInformer := informers.CreateSharedPodIndexInformer(client, resyncPeriod())
podInformer := informers.NewPodInformer(client, resyncPeriod())
e := NewEndpointController(podInformer, client)
e.internalPodInformer = podInformer