mirror of https://github.com/k3s-io/k3s
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.
pull/6/head
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