mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +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
|
// process s.ServiceClusterIPRange from list to Primary and Secondary
|
||||||
// we process secondary only if provided by user
|
// we process secondary only if provided by user
|
||||||
|
serviceClusterIPRangeList := []string{}
|
||||||
serviceClusterIPRangeList := strings.Split(s.ServiceClusterIPRanges, ",")
|
if s.ServiceClusterIPRanges != "" {
|
||||||
|
serviceClusterIPRangeList = strings.Split(s.ServiceClusterIPRanges, ",")
|
||||||
|
}
|
||||||
|
|
||||||
var apiServerServiceIP net.IP
|
var apiServerServiceIP net.IP
|
||||||
var serviceIPRange net.IPNet
|
var serviceIPRange net.IPNet
|
||||||
|
Loading…
Reference in New Issue
Block a user