Lint fixes

This commit is contained in:
Joshua Casey
2024-08-19 10:37:53 -05:00
parent 8bd9b94d0a
commit 436112252d
7 changed files with 19 additions and 15 deletions

View File

@@ -611,7 +611,7 @@ func runSupervisor(ctx context.Context, podInfo *downward.PodInfo, cfg *supervis
// Run the server. Its post-start hook will start the controllers. Its pre shutdown hook will be called when ctx is
// cancelled, and that hook should graceful stop the controllers and give up the leader election lease. See the
// code for these hooks in internal/supervisor/apiserver.go.
err = server.GenericAPIServer.PrepareRun().Run(ctx.Done())
err = server.GenericAPIServer.PrepareRun().RunWithContext(ctx)
if err != nil {
return err
}