mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Svc REST: rename allocServiceNodePortsNew
This commit is contained in:
parent
f94782b4f5
commit
3b971b137c
@ -85,7 +85,7 @@ func (al *RESTAllocStuff) allocateCreate(service *api.Service, dryRun bool) (tra
|
||||
}
|
||||
|
||||
// Allocate ports
|
||||
if txn, err := al.allocServiceNodePortsNew(service, dryRun); err != nil {
|
||||
if txn, err := al.txnAllocNodePorts(service, dryRun); err != nil {
|
||||
result.Revert()
|
||||
return nil, err
|
||||
} else {
|
||||
@ -956,8 +956,7 @@ func allocateHealthCheckNodePort(service *api.Service, nodePortOp *portallocator
|
||||
return nil
|
||||
}
|
||||
|
||||
//FIXME: rename and merge with initNodePorts
|
||||
func (al *RESTAllocStuff) allocServiceNodePortsNew(service *api.Service, dryRun bool) (transaction, error) {
|
||||
func (al *RESTAllocStuff) txnAllocNodePorts(service *api.Service, dryRun bool) (transaction, error) {
|
||||
// The allocator tracks dry-run-ness internally.
|
||||
nodePortOp := portallocator.StartOperation(al.serviceNodePorts, dryRun)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user