mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
ipvs: check for existence of scheduler module and fail if not found
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
This commit is contained in:
@@ -711,10 +711,11 @@ func CanUseIPVSProxier(handle KernelHandler, ipsetver IPSetVersioner, scheduler
|
||||
}
|
||||
mods = utilipvs.GetRequiredIPVSModules(kernelVersion)
|
||||
wantModules := sets.NewString()
|
||||
schedulerMod, modNotFound := utilipvs.GetRequiredSchedulerModules(scheduler)
|
||||
if modNotFound != nil {
|
||||
klog.Error(modNotFound)
|
||||
// We check for the existence of the scheduler mod and will trigger a missingMods error if not found
|
||||
if scheduler == "" {
|
||||
scheduler = DefaultScheduler
|
||||
}
|
||||
schedulerMod := "ip_vs_" + scheduler
|
||||
mods = append(mods, schedulerMod)
|
||||
wantModules.Insert(mods...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user