Merge pull request #78944 from avorima/golint_fix_job

Fix golint errors in pkg/controller/job
This commit is contained in:
Kubernetes Prow Robot
2020-04-12 21:57:47 -07:00
committed by GitHub
6 changed files with 55 additions and 50 deletions

View File

@@ -34,7 +34,7 @@ func startJobController(ctx ControllerContext) (http.Handler, bool, error) {
if !ctx.AvailableResources[schema.GroupVersionResource{Group: "batch", Version: "v1", Resource: "jobs"}] {
return nil, false, nil
}
go job.NewJobController(
go job.NewController(
ctx.InformerFactory.Core().V1().Pods(),
ctx.InformerFactory.Batch().V1().Jobs(),
ctx.ClientBuilder.ClientOrDie("job-controller"),