mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +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"
|
"k8s.io/kubernetes/pkg/registry/core/service/ipallocator"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ServiceIPRange takes a the serviceIPRange flag and returns the defaulted service ip range (if needed),
|
// ServiceIPRange checks if the serviceClusterIPRange flag is nil, raising a warning if so and
|
||||||
// api server service IP, and an error
|
// 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) {
|
func ServiceIPRange(passedServiceClusterIPRange net.IPNet) (net.IPNet, net.IP, error) {
|
||||||
serviceClusterIPRange := passedServiceClusterIPRange
|
serviceClusterIPRange := passedServiceClusterIPRange
|
||||||
if passedServiceClusterIPRange.IP == nil {
|
if passedServiceClusterIPRange.IP == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user