mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Remove newScheduler to simplify instantiation
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
@@ -460,17 +460,14 @@ func initScheduler(stop <-chan struct{}, cache internalcache.Cache, queue intern
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
s := newScheduler(
|
||||
cache,
|
||||
nil,
|
||||
nil,
|
||||
stop,
|
||||
queue,
|
||||
profile.Map{testSchedulerName: fwk},
|
||||
client,
|
||||
nil,
|
||||
0,
|
||||
)
|
||||
s := &Scheduler{
|
||||
Cache: cache,
|
||||
client: client,
|
||||
StopEverything: stop,
|
||||
SchedulingQueue: queue,
|
||||
Profiles: profile.Map{testSchedulerName: fwk},
|
||||
}
|
||||
s.applyDefaultHandlers()
|
||||
|
||||
return s, fwk, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user