From c6dd2db55033e30ac9fe5654f32b29d2fa69d33a Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Fri, 24 Feb 2017 14:18:10 -0300 Subject: [PATCH] Fix node lister when --watch-namespace is used --- core/pkg/ingress/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pkg/ingress/controller/controller.go b/core/pkg/ingress/controller/controller.go index 0523d3063..5a315dbfd 100644 --- a/core/pkg/ingress/controller/controller.go +++ b/core/pkg/ingress/controller/controller.go @@ -295,7 +295,7 @@ func newIngressController(config *Configuration) *GenericController { cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}) 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) if config.UpdateStatus {