Skip to content

Commit bee5e0a

Browse files
committed
trigger related port pool reconcile if NoPortAvailable
Signed-off-by: roc <[email protected]>
1 parent 44af000 commit bee5e0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/controller/clbbinding.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,10 @@ LOOP_PORT:
633633
}
634634
allocatedPorts = append(allocatedPorts, allocated...)
635635
} else { // 只要有一个端口分配失败就认为失败
636-
releasePorts() // 为保证事务性,释放已分配的端口
636+
releasePorts() // 为保证事务性,释放已分配的端口
637+
for poolName := range allocatedPools { // 通知关联的端口池对账,如果启用自动创建 clb,可触发 lb 扩容
638+
notifyPortPoolReconcile(poolName)
639+
}
637640
return portpool.ErrNoPortAvailable
638641
}
639642
}

0 commit comments

Comments
 (0)