Make number of workers configurable

This commit is contained in:
Janet Kuo
2018-08-14 15:31:32 -07:00
parent 0a6389e872
commit cbdc9b671f
10 changed files with 99 additions and 2 deletions

View File

@@ -426,6 +426,6 @@ func startTTLAfterFinishedController(ctx ControllerContext) (http.Handler, bool,
go ttlafterfinished.New(
ctx.InformerFactory.Batch().V1().Jobs(),
ctx.ClientBuilder.ClientOrDie("ttl-after-finished-controller"),
).Run(5, ctx.Stop)
).Run(int(ctx.ComponentConfig.TTLAfterFinishedController.ConcurrentTTLSyncs), ctx.Stop)
return nil, true, nil
}