mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Svc REST: rename allocServiceClusterIP
This commit is contained in:
parent
1b79bbc9f4
commit
b9f1f4712a
@ -284,7 +284,7 @@ func (al *RESTAllocStuff) releaseIPs(toRelease map[api.IPFamily]string) (map[api
|
|||||||
|
|
||||||
// standard allocator for dualstackgate==Off, hard wired dependency
|
// standard allocator for dualstackgate==Off, hard wired dependency
|
||||||
// and ignores policy, families and clusterIPs
|
// and ignores policy, families and clusterIPs
|
||||||
func (al *RESTAllocStuff) allocServiceClusterIP(service *api.Service, dryRun bool) (map[api.IPFamily]string, error) {
|
func (al *RESTAllocStuff) allocClusterIP(service *api.Service, dryRun bool) (map[api.IPFamily]string, error) {
|
||||||
toAlloc := make(map[api.IPFamily]string)
|
toAlloc := make(map[api.IPFamily]string)
|
||||||
|
|
||||||
// get clusterIP.. empty string if user did not specify an ip
|
// get clusterIP.. empty string if user did not specify an ip
|
||||||
@ -337,7 +337,7 @@ func (al *RESTAllocStuff) allocServiceClusterIPs(service *api.Service, dryRun bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.IPv6DualStack) {
|
if !utilfeature.DefaultFeatureGate.Enabled(features.IPv6DualStack) {
|
||||||
return al.allocServiceClusterIP(service, dryRun)
|
return al.allocClusterIP(service, dryRun)
|
||||||
}
|
}
|
||||||
|
|
||||||
toAlloc := make(map[api.IPFamily]string)
|
toAlloc := make(map[api.IPFamily]string)
|
||||||
|
Loading…
Reference in New Issue
Block a user