mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 20:42:26 +00:00
Merge pull request #59017 from drinktee/fixcomments
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix portallocator comments **What this PR does / why we need it**: fix portallocator comments **Which issue(s) this PR fixes** : **Release note**: NONE
This commit is contained in:
commit
37d7c68bcd
@ -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
Block a user