Fix golint errors in pkg/controller/job

This commit is contained in:
Mario Valderrama
2019-06-12 20:09:57 +02:00
parent 56b40066d5
commit dbbe68601f
6 changed files with 53 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"),