Skip to content

Commit a295925

Browse files
authored
fix: only addOrUpdateSubnetQueue if the GatewayType is distributed instead of if it's not centralized (#5493)
Signed-off-by: Joachim Hill-Grannec <joachim.hill@gmail.com>
1 parent b9b48f7 commit a295925

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/controller/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ func (c *Controller) handleUpdateNode(key string) error {
524524
}
525525

526526
for _, cachedSubnet := range subnets {
527-
if cachedSubnet.Spec.GatewayType != kubeovnv1.GWCentralizedType {
527+
if cachedSubnet.Spec.GatewayType == kubeovnv1.GWDistributedType {
528528
// we need to reconcile ovn route for subnets with distributed gateway mode,
529529
// since the informer node cache may not be synced before the subnet reconcile triggered by node addition
530530
c.addOrUpdateSubnetQueue.Add(cachedSubnet.Name)

0 commit comments

Comments
 (0)