mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-03 03:35:46 +00:00
Lint fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user