mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Svc REST: rename allocServiceClusterIPsNew
This commit is contained in:
parent
8f5189a49f
commit
f94782b4f5
@ -77,7 +77,7 @@ func (al *RESTAllocStuff) allocateCreate(service *api.Service, dryRun bool) (tra
|
||||
//TODO(thockin): validation should not pass with empty clusterIP, but it
|
||||
//does (and is tested!). Fixing that all is a big PR and will have to
|
||||
//happen later.
|
||||
if txn, err := al.allocServiceClusterIPsNew(service, dryRun); err != nil {
|
||||
if txn, err := al.txnAllocClusterIPs(service, dryRun); err != nil {
|
||||
result.Revert()
|
||||
return nil, err
|
||||
} else {
|
||||
@ -302,8 +302,7 @@ func (al *RESTAllocStuff) allocServiceClusterIP(service *api.Service, dryRun boo
|
||||
return allocated, err
|
||||
}
|
||||
|
||||
//FIXME: merge into allocServiceClusterIPs rather than call it
|
||||
func (al *RESTAllocStuff) allocServiceClusterIPsNew(service *api.Service, dryRun bool) (transaction, error) {
|
||||
func (al *RESTAllocStuff) txnAllocClusterIPs(service *api.Service, dryRun bool) (transaction, error) {
|
||||
// clusterIPs that were allocated may need to be released in case of
|
||||
// failure at a higher level.
|
||||
toReleaseClusterIPs, err := al.allocServiceClusterIPs(service, dryRun)
|
||||
|
Loading…
Reference in New Issue
Block a user