We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c7c79 commit 75209a5Copy full SHA for 75209a5
pkg/controller/vpc.go
@@ -594,7 +594,11 @@ func (c *Controller) handleAddOrUpdateVpc(key string) error {
594
custVpcEnableExternalEcmp := false
595
for _, subnet := range subnets {
596
if subnet.Spec.Vpc == key {
597
- c.addOrUpdateSubnetQueue.Add(subnet.Name)
+ // Accelerate subnet update when vpc config is updated.
598
+ // In case VPC not set namespaces, subnet will backoff and may take long time to back to ready.
599
+ if subnet.Status.IsNotReady() || subnet.Spec.U2OInterconnection {
600
+ c.addOrUpdateSubnetQueue.Add(subnet.Name)
601
+ }
602
if vpc.Name != util.DefaultVpc && vpc.Spec.EnableBfd && subnet.Spec.EnableEcmp {
603
custVpcEnableExternalEcmp = true
604
}
0 commit comments