From 9c622230fc978921c437f4d29fca96f01f8f60dc Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 24 Aug 2021 22:45:39 -0700 Subject: [PATCH] Svc REST: rename releaseServiceClusterIPs --- pkg/registry/core/service/storage/rest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/registry/core/service/storage/rest.go b/pkg/registry/core/service/storage/rest.go index 08f98fcfa8f..50627a46176 100644 --- a/pkg/registry/core/service/storage/rest.go +++ b/pkg/registry/core/service/storage/rest.go @@ -96,7 +96,7 @@ func (al *RESTAllocStuff) allocateCreate(service *api.Service, dryRun bool) (tra } func (al *RESTAllocStuff) releaseAllocatedResources(svc *api.Service) { - al.releaseServiceClusterIPs(svc) + al.releaseClusterIPs(svc) for _, nodePort := range collectServiceNodePorts(svc) { err := al.serviceNodePorts.Release(nodePort) @@ -527,7 +527,7 @@ func (al *RESTAllocStuff) releaseClusterIP(service *api.Service) (released map[a } // releases allocated ClusterIPs for service that is about to be deleted -func (al *RESTAllocStuff) releaseServiceClusterIPs(service *api.Service) (released map[api.IPFamily]string, err error) { +func (al *RESTAllocStuff) releaseClusterIPs(service *api.Service) (released map[api.IPFamily]string, err error) { // external name don't get ClusterIPs if service.Spec.Type == api.ServiceTypeExternalName { return nil, nil