controller-manager: switch to config/option struct pattern
This commit is contained in:

committed by
Dr. Stefan Schimanski

parent
ba791275ce
commit
0cbe0a6034
@@ -36,7 +36,7 @@ func startJobController(ctx ControllerContext) (bool, error) {
|
||||
ctx.InformerFactory.Core().V1().Pods(),
|
||||
ctx.InformerFactory.Batch().V1().Jobs(),
|
||||
ctx.ClientBuilder.ClientOrDie("job-controller"),
|
||||
).Run(int(ctx.Options.ConcurrentJobSyncs), ctx.Stop)
|
||||
).Run(int(ctx.ComponentConfig.ConcurrentJobSyncs), ctx.Stop)
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user