mirror of https://github.com/k3s-io/k3s
fix portallocator comments
Change-Id: I547168de08acaedad03ac472c6b6afa578b8a7c4pull/6/head
parent
9fa96264f9
commit
1ba6cdae4a
|
@ -74,7 +74,7 @@ func NewPortAllocatorCustom(pr net.PortRange, allocatorFactory allocator.Allocat
|
|||
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 {
|
||||
return NewPortAllocatorCustom(pr, func(max int, rangeSpec string) allocator.Interface {
|
||||
return allocator.NewAllocationMap(max, rangeSpec)
|
||||
|
|
Loading…
Reference in New Issue