mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix bug in apiserver service cluster cidr split
Signed-off-by: darshanime <deathbullet@gmail.com>
This commit is contained in:
parent
864596f680
commit
fdd25ec968
@ -572,8 +572,10 @@ func Complete(s *options.ServerRunOptions) (completedServerRunOptions, error) {
|
||||
|
||||
// process s.ServiceClusterIPRange from list to Primary and Secondary
|
||||
// we process secondary only if provided by user
|
||||
|
||||
serviceClusterIPRangeList := strings.Split(s.ServiceClusterIPRanges, ",")
|
||||
serviceClusterIPRangeList := []string{}
|
||||
if s.ServiceClusterIPRanges != "" {
|
||||
serviceClusterIPRangeList = strings.Split(s.ServiceClusterIPRanges, ",")
|
||||
}
|
||||
|
||||
var apiServerServiceIP net.IP
|
||||
var serviceIPRange net.IPNet
|
||||
|
Loading…
Reference in New Issue
Block a user