mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Svc REST: rename allocUpdateServiceClusterIPsNew
This commit is contained in:
parent
3b971b137c
commit
bb815e6687
@ -172,7 +172,7 @@ func (al *RESTAllocStuff) allocateUpdate(service, oldService *api.Service, dryRu
|
|||||||
//TODO(thockin): validation should not pass with empty clusterIP, but it
|
//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
|
//does (and is tested!). Fixing that all is a big PR and will have to
|
||||||
//happen later.
|
//happen later.
|
||||||
if txn, err := al.allocUpdateServiceClusterIPsNew(service, oldService, dryRun); err != nil {
|
if txn, err := al.txnUpdateClusterIPs(service, oldService, dryRun); err != nil {
|
||||||
result.Revert()
|
result.Revert()
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
@ -385,8 +385,7 @@ func (al *RESTAllocStuff) allocServiceClusterIPs(service *api.Service, dryRun bo
|
|||||||
return allocated, err
|
return allocated, err
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIXME: rename and merge with handleClusterIPsForUpdatedService
|
func (al *RESTAllocStuff) txnUpdateClusterIPs(service *api.Service, oldService *api.Service, dryRun bool) (transaction, error) {
|
||||||
func (al *RESTAllocStuff) allocUpdateServiceClusterIPsNew(service *api.Service, oldService *api.Service, dryRun bool) (transaction, error) {
|
|
||||||
allocated, released, err := al.handleClusterIPsForUpdatedService(oldService, service, dryRun)
|
allocated, released, err := al.handleClusterIPsForUpdatedService(oldService, service, dryRun)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user