Skip to content

Commit

Permalink
fix static route recreation after kube-ovn-controller restarts (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed May 10, 2023
1 parent e7190e6 commit e1154ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/controller/vpc.go
Expand Up @@ -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)
Expand Down

0 comments on commit e1154ac

Please sign in to comment.