Skip to content

Commit e939309

Browse files
committed
fix
Signed-off-by: roc <roc@imroc.cc>
1 parent f02dec7 commit e939309

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/controller/clbportpool_controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ func (r *CLBPortPoolReconciler) ensureQuota(ctx context.Context, pool *networkin
299299
if err := r.Status().Update(ctx, pool); err != nil {
300300
return errors.WithStack(err)
301301
}
302-
portpool.Allocator.EnsureLbIds(name string, lbKeys []portpool.LBKey)
303302
}
304303
return nil
305304
}
@@ -309,8 +308,6 @@ func (r *CLBPortPoolReconciler) sync(ctx context.Context, pool *networkingv1alph
309308
// 确保分配器缓存中存在该 port pool,放在最开头,避免同时创建 CLBPortPool 和 CLBBinding 导致分配端口时找不到 pool
310309
portpool.Allocator.AddPoolIfNotExists(pool.Name)
311310

312-
needUpdateStatus := false
313-
314311
// 初始化状态
315312
if pool.Status.State == "" {
316313
if err := r.ensureState(ctx, pool, networkingv1alpha1.CLBPortPoolStatePending); err != nil {

0 commit comments

Comments
 (0)