rename legacy to core
This commit is contained in:
@@ -59,7 +59,7 @@ func (rc *RouteController) reconcileNodeRoutes() error {
|
||||
}
|
||||
// TODO (cjcullen): use pkg/controller/framework.NewInformer to watch this
|
||||
// and reduce the number of lists needed.
|
||||
nodeList, err := rc.kubeClient.Legacy().Nodes().List(api.ListOptions{})
|
||||
nodeList, err := rc.kubeClient.Core().Nodes().List(api.ListOptions{})
|
||||
if err != nil {
|
||||
return fmt.Errorf("error listing nodes: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user