mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
test-integration: Fix using deprecated default cluster IPs
The integration test for pods produces a warning caused by using deprecated default cluster IPs. $ make test-integration WHAT=./test/integration/pods GOFLAGS="-v" W1007 17:25:28.217410 100721 services.go:37] No CIDR for service cluster IPs specified. Default value which was 10.0.0.0/24 is deprecated and will be removed in future releases. Please specify it using --service-cluster-ip-range on kube-apiserver. This warning appears 36 times after running all tests. This patch removes all the warnings. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
c9c24b46c3
commit
bcbd16b94b
@ -204,6 +204,9 @@ func startMasterOrDie(masterConfig *controlplane.Config, incomingServer *httptes
|
||||
)
|
||||
}
|
||||
|
||||
if masterConfig.ExtraConfig.ServiceIPRange.IP == nil {
|
||||
masterConfig.ExtraConfig.ServiceIPRange = net.IPNet{IP: net.ParseIP("10.0.0.0"), Mask: net.CIDRMask(24, 32)}
|
||||
}
|
||||
m, err = masterConfig.Complete().New(genericapiserver.NewEmptyDelegate())
|
||||
if err != nil {
|
||||
// We log the error first so that even if closeFn crashes, the error is shown
|
||||
|
Loading…
Reference in New Issue
Block a user