Fix node lister when --watch-namespace is used
This commit is contained in:
parent
0134715b1c
commit
c6dd2db550
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue