fix controller Start method signature

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-08-11 09:05:53 +00:00
parent 810bfb618a
commit 2fcfb81066
39 changed files with 106 additions and 120 deletions

View File

@@ -87,8 +87,8 @@ func NewJobController(jobInformer batchv1informers.JobInformer, client clientset
}
func (v *JobController) Start(stopCh <-chan struct{}) error {
return v.Run(5, stopCh)
func (v *JobController) Start(ctx context.Context) error {
return v.Run(5, ctx.Done())
}
func (v *JobController) Run(workers int, stopCh <-chan struct{}) error {