mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Reword the comment for ServiceIPRange
Signed-off-by: darshanime <deathbullet@gmail.com>
This commit is contained in:
parent
aef96c34a9
commit
70e74545a8
@ -25,8 +25,10 @@ import (
|
||||
"k8s.io/kubernetes/pkg/registry/core/service/ipallocator"
|
||||
)
|
||||
|
||||
// ServiceIPRange takes a the serviceIPRange flag and returns the defaulted service ip range (if needed),
|
||||
// api server service IP, and an error
|
||||
// ServiceIPRange checks if the serviceClusterIPRange flag is nil, raising a warning if so and
|
||||
// setting service ip range to the default value in kubeoptions.DefaultServiceIPCIDR
|
||||
// for now until the default is removed per the deprecation timeline guidelines.
|
||||
// Returns service ip range, api server service IP, and an error
|
||||
func ServiceIPRange(passedServiceClusterIPRange net.IPNet) (net.IPNet, net.IP, error) {
|
||||
serviceClusterIPRange := passedServiceClusterIPRange
|
||||
if passedServiceClusterIPRange.IP == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user