Wire contexts to RBAC controllers

This commit is contained in:
Mike Dame
2021-04-22 14:35:26 -04:00
parent 9b45983d3c
commit 3f0b6d390c
3 changed files with 20 additions and 19 deletions

View File

@@ -31,6 +31,6 @@ func startClusterRoleAggregrationController(ctx context.Context, controllerConte
go clusterroleaggregation.NewClusterRoleAggregation(
controllerContext.InformerFactory.Rbac().V1().ClusterRoles(),
controllerContext.ClientBuilder.ClientOrDie("clusterrole-aggregation-controller").RbacV1(),
).Run(5, ctx.Done())
).Run(ctx, 5)
return nil, true, nil
}