Merge pull request #105510 from damemi/wire-contexts-bootstrap

Wire contexts to Bootstrap controllers
This commit is contained in:
Kubernetes Prow Robot
2021-11-02 14:27:42 -07:00
committed by GitHub
5 changed files with 35 additions and 33 deletions

View File

@@ -34,7 +34,7 @@ func startBootstrapSignerController(ctx context.Context, controllerContext Contr
if err != nil {
return nil, true, fmt.Errorf("error creating BootstrapSigner controller: %v", err)
}
go bsc.Run(ctx.Done())
go bsc.Run(ctx)
return nil, true, nil
}
@@ -47,6 +47,6 @@ func startTokenCleanerController(ctx context.Context, controllerContext Controll
if err != nil {
return nil, true, fmt.Errorf("error creating TokenCleaner controller: %v", err)
}
go tcc.Run(ctx.Done())
go tcc.Run(ctx)
return nil, true, nil
}