mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #23261 from hongchaodeng/sched
Automatic merge from submit-queue
kube-scheduler: cleanup duplicate GetAlgorithmProvider()
See [here](ae88f08af0/plugin/pkg/scheduler/factory/factory.go (L177-L180)
).
The check is duplicate since CreateFromProvider will also do it.
This commit is contained in:
commit
bf0e6e0047
@ -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
|
||||
// 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user