Remove Stop from ControllerContext and pass ctx.Done

This commit is contained in:
Mike Dame
2021-09-22 16:11:00 -04:00
parent 80dcf7df1b
commit bfd7f72e9b
11 changed files with 90 additions and 94 deletions

View File

@@ -58,6 +58,6 @@ func startDisruptionController(ctx context.Context, controllerContext Controller
controllerContext.RESTMapper,
scaleClient,
client.Discovery(),
).Run(controllerContext.Stop)
).Run(ctx.Done())
return nil, true, nil
}