diff --git a/pkg/controller/vpc.go b/pkg/controller/vpc.go index ef1e212dd26..9467aaa800a 100644 --- a/pkg/controller/vpc.go +++ b/pkg/controller/vpc.go @@ -341,10 +341,6 @@ func (c *Controller) handleAddOrUpdateVpc(key string) error { } } - if vpc.Name == c.config.ClusterRouter && vpc.Spec.EnableExternal { - // custom vpc enable external, just like default vpc with enable eip and snat above - targetRoutes = vpc.Spec.StaticRoutes - } routeNeedDel, routeNeedAdd, err := diffStaticRoute(existRoute, targetRoutes) if err != nil { klog.Errorf("failed to diff vpc %s static route, %v", vpc.Name, err)