From dc86bdc3aae34707db63ab1e622a4140f8457167 Mon Sep 17 00:00:00 2001 From: Lars Ekman Date: Fri, 23 Dec 2022 13:23:02 +0100 Subject: [PATCH] Handle an empty scheduler ("") --- pkg/proxy/ipvs/proxier.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/proxy/ipvs/proxier.go b/pkg/proxy/ipvs/proxier.go index 1562f3e6729..6fe7aabc81a 100644 --- a/pkg/proxy/ipvs/proxier.go +++ b/pkg/proxy/ipvs/proxier.go @@ -665,6 +665,10 @@ func CanUseIPVSProxier(ipvs utilipvs.Interface, ipsetver IPSetVersioner, schedul return fmt.Errorf("ipset version: %s is less than min required version: %s", versionString, MinIPSetCheckVersion) } + if scheduler == "" { + scheduler = defaultScheduler + } + // Check is any virtual servers (vs) are configured. If any, we assume // that this is a kube-proxy re-start and skip the checks. vservers, err := ipvs.GetVirtualServers()