Skip to content

Commit 335293a

Browse files
committed
fix(controller): remove duplicate addOrUpdateSubnetQueue.Add in handleAddOrUpdateVpc
Cherry-pick of kubeovn#6268 introduced a duplicate unconditional call to addOrUpdateSubnetQueue.Add alongside the IsNotReady() conditional call, causing every subnet to be enqueued twice on VPC update. Restore correct behavior matching release-1.15: only enqueue when subnet is not ready.
1 parent a8fe9df commit 335293a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/controller/vpc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,6 @@ func (c *Controller) handleAddOrUpdateVpc(key string) error {
607607
if subnet.Status.IsNotReady() {
608608
c.addOrUpdateSubnetQueue.Add(subnet.Name)
609609
}
610-
c.addOrUpdateSubnetQueue.Add(subnet.Name)
611610
if vpc.Name != util.DefaultVpc && vpc.Spec.EnableBfd && subnet.Spec.EnableEcmp {
612611
custVpcEnableExternalEcmp = true
613612
}

0 commit comments

Comments
 (0)