mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
kube-scheduler: cleanup duplicate GetAlgorithmProvider()
This commit is contained in:
parent
d5316c21ef
commit
dc91b82a3f
@ -176,11 +176,5 @@ func createConfig(s *options.SchedulerServer, configFactory *factory.ConfigFacto
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if the config file isn't provided, use the specified (or default) provider
|
// if the config file isn't provided, use the specified (or default) provider
|
||||||
// check of algorithm provider is registered and fail fast
|
|
||||||
_, err := factory.GetAlgorithmProvider(s.AlgorithmProvider)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return configFactory.CreateFromProvider(s.AlgorithmProvider)
|
return configFactory.CreateFromProvider(s.AlgorithmProvider)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user