Skip to content

Commit

Permalink
Fix node lister when --watch-namespace is used
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Feb 24, 2017
1 parent 0134715 commit c6dd2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/pkg/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c6dd2db

Please sign in to comment.