Skip to content

Commit

Permalink
refactor: remove redundant policy route addition in node handling (#4835
Browse files Browse the repository at this point in the history
)

Signed-off-by: oilbeater <[email protected]>
  • Loading branch information
oilbeater committed Dec 17, 2024
1 parent c471504 commit 5335f10
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/controller/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,6 @@ func (c *Controller) handleAddNode(key string) error {
klog.Errorf("failed to create port group for node %s and subnet %s: %v", node.Name, subnet.Name, err)
return err
}
if err = c.addPolicyRouteForDistributedSubnet(subnet, node.Name, v4IP, v6IP); err != nil {
klog.Errorf("failed to add policy router for node %s and subnet %s: %v", node.Name, subnet.Name, err)
return err
}
// policy route for overlay distributed subnet should be reconciled when node ip changed
c.addOrUpdateSubnetQueue.Add(subnet.Name)
}
Expand Down

0 comments on commit 5335f10

Please sign in to comment.