Skip to content

Commit cacae5a

Browse files
committed
trigger port pool reconcile when release port
Signed-off-by: roc <[email protected]>
1 parent 0e1cf95 commit cacae5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controller/clbbinding.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ func (r *CLBBindingReconciler[T]) cleanupPortBinding(ctx context.Context, bindin
734734
lbKey := portpool.NewLBKey(binding.LoadbalancerId, binding.Region)
735735
if portpool.Allocator.Release(binding.Pool, lbKey, portFromPortBindingStatus(binding)) {
736736
log.FromContext(ctx).V(3).Info("release allocated port", "port", binding.LoadbalancerPort, "protocol", binding.Protocol, "pool", binding.Pool, "lb", binding.LoadbalancerId)
737+
notifyPortPoolReconcile(binding.Pool)
737738
}
738739
}
739740
lis, err := clb.GetListenerByIdOrPort(ctx, binding.Region, binding.LoadbalancerId, binding.ListenerId, int64(binding.LoadbalancerPort), binding.Protocol)

0 commit comments

Comments
 (0)