diff --git a/cloud/linode/route_controller.go b/cloud/linode/route_controller.go index ee2d3528..dd634c29 100644 --- a/cloud/linode/route_controller.go +++ b/cloud/linode/route_controller.go @@ -84,9 +84,13 @@ func newRoutes(client client.Client) (cloudprovider.Routes, error) { } klog.V(3).Infof("TTL for routeCache set to %d", timeout) - vpcid, err := getVPCID(client, Options.VPCName) - if err != nil { - return nil, err + vpcid := 0 + if Options.EnableRouteController { + id, err := getVPCID(client, Options.VPCName) + if err != nil { + return nil, err + } + vpcid = id } return &routes{