mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
fix portallocator comments
Change-Id: I547168de08acaedad03ac472c6b6afa578b8a7c4
This commit is contained in:
parent
9fa96264f9
commit
1ba6cdae4a
@ -74,7 +74,7 @@ func NewPortAllocatorCustom(pr net.PortRange, allocatorFactory allocator.Allocat
|
|||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper that wraps NewAllocatorCIDRRange, for creating a range backed by an in-memory store.
|
// Helper that wraps NewPortAllocatorCustom, for creating a range backed by an in-memory store.
|
||||||
func NewPortAllocator(pr net.PortRange) *PortAllocator {
|
func NewPortAllocator(pr net.PortRange) *PortAllocator {
|
||||||
return NewPortAllocatorCustom(pr, func(max int, rangeSpec string) allocator.Interface {
|
return NewPortAllocatorCustom(pr, func(max int, rangeSpec string) allocator.Interface {
|
||||||
return allocator.NewAllocationMap(max, rangeSpec)
|
return allocator.NewAllocationMap(max, rangeSpec)
|
||||||
|
Loading…
Reference in New Issue
Block a user