Skip to content

Commit 9f42422

Browse files
committed
fix
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
1 parent e15469d commit 9f42422

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controller/subnet.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ func (c *Controller) enqueueUpdateSubnet(oldObj, newObj any) {
9292
c.updateVpcStatusQueue.Add(oldSubnet.Spec.Vpc)
9393
}
9494

95+
if oldSubnet.Spec.U2OInterconnection != newSubnet.Spec.U2OInterconnection {
96+
klog.Infof("enqueue update vpc %s triggered by u2o interconnection change of subnet %s", newSubnet.Spec.Vpc, key)
97+
c.addOrUpdateVpcQueue.Add(newSubnet.Spec.Vpc)
98+
}
99+
95100
if oldSubnet.Spec.Private != newSubnet.Spec.Private ||
96101
oldSubnet.Spec.CIDRBlock != newSubnet.Spec.CIDRBlock ||
97102
!slices.Equal(oldSubnet.Spec.AllowSubnets, newSubnet.Spec.AllowSubnets) ||

0 commit comments

Comments
 (0)