From e1154acf679fb5bd58f9dbdfac4b84ae1649a995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A5=96=E5=BB=BA?= Date: Wed, 10 May 2023 09:35:24 +0800 Subject: [PATCH] fix static route recreation after kube-ovn-controller restarts (#2778) --- pkg/controller/vpc.go | 4 ---- 1 file changed, 4 deletions(-) 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)