From 7d9357b181fdaef44f80c2dcd116e23148faad86 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 24 Aug 2021 22:04:50 -0700 Subject: [PATCH] Svc REST: rename allocUpdateServiceNodePortsNew --- pkg/registry/core/service/storage/rest.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/registry/core/service/storage/rest.go b/pkg/registry/core/service/storage/rest.go index 5ce234dfe15..cee583bd270 100644 --- a/pkg/registry/core/service/storage/rest.go +++ b/pkg/registry/core/service/storage/rest.go @@ -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)