Remove unwanted conditions from controllers.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
k3s-v1.15.3
Humble Chirammal 2019-05-01 13:44:24 +05:30
parent a3c1a6da02
commit 4d56ab19e4
1 changed files with 1 additions and 2 deletions

View File

@ -180,9 +180,8 @@ func (gb *GraphBuilder) controllerFor(resource schema.GroupVersionResource, kind
// need to clone because it's from a shared cache
shared.Informer().AddEventHandlerWithResyncPeriod(handlers, ResourceResyncTime)
return shared.Informer().GetController(), shared.Informer().GetStore(), nil
} else {
klog.V(4).Infof("unable to use a shared informer for resource %q, kind %q: %v", resource.String(), kind.String(), err)
}
klog.V(4).Infof("unable to use a shared informer for resource %q, kind %q: %v", resource.String(), kind.String(), err)
// TODO: consider store in one storage.
klog.V(5).Infof("create storage for resource %s", resource)