mirror of https://github.com/k3s-io/k3s
Merge pull request #49379 from aveshagarwal/master-scheduler-issue
Automatic merge from submit-queue (batch tested with PRs 49326, 49394, 49346, 49379, 49399) Pass clientset's Interface to CreateScheduler. **What this PR does / why we need it**: CreateSchedueler takes clientset.Clientset param and passes it to NewConfigFactory which takes clientset.Interface. It'd be better for CreateSchedueler to take clientset.Interface to be in sync with NewConfigFactory and it would be easier to reuse CreateSchedueler in implementations which relies on interface rather than actual client implementation. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # No issue. @kubernetes/sig-scheduling-pr-reviews @bsalamatpull/6/head
commit
e57e9afbd2
|
@ -83,7 +83,7 @@ func createClient(s *options.SchedulerServer) (*clientset.Clientset, *kubernetes
|
|||
// CreateScheduler encapsulates the entire creation of a runnable scheduler.
|
||||
func CreateScheduler(
|
||||
s *options.SchedulerServer,
|
||||
kubecli *clientset.Clientset,
|
||||
kubecli clientset.Interface,
|
||||
nodeInformer coreinformers.NodeInformer,
|
||||
podInformer coreinformers.PodInformer,
|
||||
pvInformer coreinformers.PersistentVolumeInformer,
|
||||
|
|
Loading…
Reference in New Issue