From 5335f1095d11bc74acde4f01640ec9ebe458b458 Mon Sep 17 00:00:00 2001 From: Mengxin Liu Date: Tue, 17 Dec 2024 09:41:14 +0800 Subject: [PATCH] refactor: remove redundant policy route addition in node handling (#4835) Signed-off-by: oilbeater --- pkg/controller/node.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/controller/node.go b/pkg/controller/node.go index 343d6731685..e9960ac6f18 100644 --- a/pkg/controller/node.go +++ b/pkg/controller/node.go @@ -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) }