Skip to content

Commit

Permalink
Merge pull request #8552 from manuelbuil/netCleanUp126
Browse files Browse the repository at this point in the history
[Release 1.26] Network defaults are duplicated, remove one
  • Loading branch information
manuelbuil authored Oct 5, 2023
2 parents baca0fc + 3a803fd commit 09e7270
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/daemons/control/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package control
import (
"context"
"math/rand"
"net"
"os"
"path/filepath"
"strconv"
Expand Down Expand Up @@ -221,20 +220,6 @@ func apiServer(ctx context.Context, cfg *config.Control) error {
}

func defaults(config *config.Control) {
if config.ClusterIPRange == nil {
_, clusterIPNet, _ := net.ParseCIDR("10.42.0.0/16")
config.ClusterIPRange = clusterIPNet
}

if config.ServiceIPRange == nil {
_, serviceIPNet, _ := net.ParseCIDR("10.43.0.0/16")
config.ServiceIPRange = serviceIPNet
}

if len(config.ClusterDNS) == 0 {
config.ClusterDNS = net.ParseIP("10.43.0.10")
}

if config.AdvertisePort == 0 {
config.AdvertisePort = config.HTTPSPort
}
Expand Down

0 comments on commit 09e7270

Please sign in to comment.