Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/ddc/base/portallocator/random_allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func newRandomAllocator(pr *net.PortRange, log logr.Logger) (*RandomAllocator, e
}, nil
}

// Allocate is a no-op for RandomAllocator.
// Individual port allocation checks are not currently required by this allocator.
func (r *RandomAllocator) Allocate(port int) error {
// not judge whether port can be allocated or not
return nil
Expand Down