Merge pull request #343 from aledbf/node-lister

Fix node lister when --watch-namespace is used
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-02-24 15:12:01 -03:00 committed by GitHub
commit 8b7d9d1872

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 {