Skip to content

Commit 508747e

Browse files
committed
Remove redundant nodeprimaryaddrchanged check
Change to node primary IP is already taken into account while setting effective.encapip and we are tracking changes to node-encap-ips annotation Signed-off-by: nithyar <[email protected]>
1 parent 971d8c9 commit 508747e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go-controller/pkg/ovn/default_network_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ func (h *defaultNetworkControllerEventHandler) UpdateResource(oldObj, newObj int
10051005
// Also check if node subnet changed, so static routes are properly set
10061006
// Also check if the node is used to be a hybrid overlay node
10071007
syncZoneIC = syncZoneIC || h.oc.isLocalZoneNode(oldNode) || nodeSubnetChange || zoneClusterChanged ||
1008-
primaryAddrChanged(oldNode, newNode) || switchToOvnNode || nodeEncapIPsChanged
1008+
switchToOvnNode || nodeEncapIPsChanged
10091009
if syncZoneIC {
10101010
klog.Infof("Node %s in remote zone %s needs interconnect zone sync up. Zone cluster changed: %v",
10111011
newNode.Name, util.GetNodeZone(newNode), zoneClusterChanged)

0 commit comments

Comments
 (0)