mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
Svc REST: rename allocUpdateServiceNodePortsNew
This commit is contained in:
parent
bb815e6687
commit
7d9357b181
1 changed files with 2 additions and 3 deletions
|
|
@ -180,7 +180,7 @@ func (al *RESTAllocStuff) allocateUpdate(service, oldService *api.Service, dryRu
|
|||
}
|
||||
|
||||
// Allocate ports
|
||||
if txn, err := al.allocUpdateServiceNodePortsNew(service, oldService, dryRun); err != nil {
|
||||
if txn, err := al.txnUpdateNodePorts(service, oldService, dryRun); err != nil {
|
||||
result.Revert()
|
||||
return nil, err
|
||||
} else {
|
||||
|
|
@ -190,8 +190,7 @@ func (al *RESTAllocStuff) allocateUpdate(service, oldService *api.Service, dryRu
|
|||
return result, nil
|
||||
}
|
||||
|
||||
//FIXME: rename and merge with updateNodePorts?
|
||||
func (al *RESTAllocStuff) allocUpdateServiceNodePortsNew(service, oldService *api.Service, dryRun bool) (transaction, error) {
|
||||
func (al *RESTAllocStuff) txnUpdateNodePorts(service, oldService *api.Service, dryRun bool) (transaction, error) {
|
||||
// The allocator tracks dry-run-ness internally.
|
||||
nodePortOp := portallocator.StartOperation(al.serviceNodePorts, dryRun)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue