Fix node lister when --watch-namespace is used

This commit is contained in:
Manuel de Brito Fontes 2017-02-24 14:18:10 -03:00
parent 0134715b1c
commit c6dd2db550

View file

@ -295,7 +295,7 @@ func newIngressController(config *Configuration) *GenericController {
cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}) cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc})
ic.nodeLister.Store, ic.nodeController = cache.NewInformer( ic.nodeLister.Store, ic.nodeController = cache.NewInformer(
cache.NewListWatchFromClient(ic.cfg.Client.Core().RESTClient(), "nodes", ic.cfg.Namespace, fields.Everything()), cache.NewListWatchFromClient(ic.cfg.Client.Core().RESTClient(), "nodes", api.NamespaceAll, fields.Everything()),
&api.Node{}, ic.cfg.ResyncPeriod, eventHandler) &api.Node{}, ic.cfg.ResyncPeriod, eventHandler)
if config.UpdateStatus { if config.UpdateStatus {