diff --git a/pkg/ddc/base/portallocator/random_allocator.go b/pkg/ddc/base/portallocator/random_allocator.go index 65c040436e9..72f211ec97e 100644 --- a/pkg/ddc/base/portallocator/random_allocator.go +++ b/pkg/ddc/base/portallocator/random_allocator.go @@ -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