use scheduler.Option in initTestSchedulerWithOptions

This commit is contained in:
Ahmad Diaa
2019-09-15 14:19:30 +02:00
parent 995e741ef9
commit bf6a70a1ce
4 changed files with 19 additions and 62 deletions

View File

@@ -181,7 +181,7 @@ func New(client clientset.Interface,
registry framework.Registry,
plugins *kubeschedulerconfig.Plugins,
pluginConfig []kubeschedulerconfig.PluginConfig,
opts ...func(o *schedulerOptions)) (*Scheduler, error) {
opts ...Option) (*Scheduler, error) {
options := defaultSchedulerOptions
for _, opt := range opts {