From acc64324ee991432de3c84183ac4fdce0ca69bef Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 2 Oct 2023 17:09:25 +0200 Subject: [PATCH] Network defaults are duplicated, remove one Signed-off-by: Manuel Buil --- pkg/daemons/control/server.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/daemons/control/server.go b/pkg/daemons/control/server.go index ea5ae19baeaa..2c65d2b4905b 100644 --- a/pkg/daemons/control/server.go +++ b/pkg/daemons/control/server.go @@ -224,20 +224,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 }