File tree 1 file changed +8
-6
lines changed 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -425,11 +425,13 @@ func (cm *controllerManager) serveHealthProbes() {
425
425
cm .healthzStarted = true
426
426
}()
427
427
428
- // Shutdown the server when stop is closed
429
- <- cm .internalProceduresStop
430
- if err := server .Shutdown (cm .shutdownCtx ); err != nil {
431
- cm .errChan <- err
432
- }
428
+ go func () {
429
+ // Shutdown the server when stop is closed
430
+ <- cm .internalProceduresStop
431
+ if err := server .Shutdown (cm .shutdownCtx ); err != nil {
432
+ cm .errChan <- err
433
+ }
434
+ }()
433
435
}
434
436
435
437
func (cm * controllerManager ) Start (ctx context.Context ) (err error ) {
@@ -473,7 +475,7 @@ func (cm *controllerManager) Start(ctx context.Context) (err error) {
473
475
474
476
// Serve health probes
475
477
if cm .healthProbeListener != nil {
476
- go cm .serveHealthProbes ()
478
+ cm .serveHealthProbes ()
477
479
}
478
480
479
481
// Webhooks MUST start before any cache is populated, otherwise there is a race condition
You can’t perform that action at this time.
0 commit comments