Commit 4d56ab19 authored by Humble Chirammal's avatar Humble Chirammal

Remove unwanted conditions from controllers.

parent a3c1a6da
...@@ -180,9 +180,8 @@ func (gb *GraphBuilder) controllerFor(resource schema.GroupVersionResource, kind ...@@ -180,9 +180,8 @@ func (gb *GraphBuilder) controllerFor(resource schema.GroupVersionResource, kind
// need to clone because it's from a shared cache // need to clone because it's from a shared cache
shared.Informer().AddEventHandlerWithResyncPeriod(handlers, ResourceResyncTime) shared.Informer().AddEventHandlerWithResyncPeriod(handlers, ResourceResyncTime)
return shared.Informer().GetController(), shared.Informer().GetStore(), nil 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. // TODO: consider store in one storage.
klog.V(5).Infof("create storage for resource %s", resource) klog.V(5).Infof("create storage for resource %s", resource)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment