Skip to content

Commit

Permalink
fix missing main route table for the default vpc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed May 11, 2023
1 parent e1154ac commit 1959a1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ func (c *Controller) handleAddOrUpdateVpc(key string) error {
rtbs := c.getRouteTablesByVpc(vpc)
targetRoutes := vpc.Spec.StaticRoutes
if vpc.Name == c.config.ClusterRouter {
if _, ok := rtbs[util.MainRouteTable]; !ok {
rtbs[util.MainRouteTable] = nil
}

joinSubnet, err := c.subnetsLister.Get(c.config.NodeSwitch)
if err != nil {
if !k8serrors.IsNotFound(err) {
Expand Down

0 comments on commit 1959a1e

Please sign in to comment.