mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Remove unused members of SchedulerLoop struct
This commit is contained in:
@@ -55,9 +55,7 @@ type SchedulerLoopConfig struct {
|
|||||||
NextPod func() *api.Pod
|
NextPod func() *api.Pod
|
||||||
Error func(*api.Pod, error)
|
Error func(*api.Pod, error)
|
||||||
Recorder record.EventRecorder
|
Recorder record.EventRecorder
|
||||||
Fw types.Framework
|
|
||||||
Client *client.Client
|
Client *client.Client
|
||||||
Qr *queuer.Queuer
|
|
||||||
Pr *PodReconciler
|
Pr *PodReconciler
|
||||||
Starting chan struct{} // startup latch
|
Starting chan struct{} // startup latch
|
||||||
}
|
}
|
||||||
@@ -103,9 +101,7 @@ func NewSchedulerLoopConfig(c *config.Config, fw types.Framework, client *client
|
|||||||
NextPod: q.Yield,
|
NextPod: q.Yield,
|
||||||
Error: eh.Error,
|
Error: eh.Error,
|
||||||
Recorder: eventBroadcaster.NewRecorder(api.EventSource{Component: "scheduler"}),
|
Recorder: eventBroadcaster.NewRecorder(api.EventSource{Component: "scheduler"}),
|
||||||
Fw: fw,
|
|
||||||
Client: client,
|
Client: client,
|
||||||
Qr: q,
|
|
||||||
Pr: podReconciler,
|
Pr: podReconciler,
|
||||||
Starting: startLatch,
|
Starting: startLatch,
|
||||||
}
|
}
|
||||||
@@ -118,9 +114,7 @@ func NewSchedulerLoop(c *SchedulerLoopConfig) SchedulerLoopInterface {
|
|||||||
nextPod: c.NextPod,
|
nextPod: c.NextPod,
|
||||||
error: c.Error,
|
error: c.Error,
|
||||||
recorder: c.Recorder,
|
recorder: c.Recorder,
|
||||||
fw: c.Fw,
|
|
||||||
client: c.Client,
|
client: c.Client,
|
||||||
qr: c.Qr,
|
|
||||||
pr: c.Pr,
|
pr: c.Pr,
|
||||||
starting: c.Starting,
|
starting: c.Starting,
|
||||||
}
|
}
|
||||||
@@ -132,10 +126,7 @@ type SchedulerLoop struct {
|
|||||||
nextPod func() *api.Pod
|
nextPod func() *api.Pod
|
||||||
error func(*api.Pod, error)
|
error func(*api.Pod, error)
|
||||||
recorder record.EventRecorder
|
recorder record.EventRecorder
|
||||||
|
|
||||||
fw types.Framework
|
|
||||||
client *client.Client
|
client *client.Client
|
||||||
qr *queuer.Queuer
|
|
||||||
pr *PodReconciler
|
pr *PodReconciler
|
||||||
starting chan struct{}
|
starting chan struct{}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user