Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Fix debug server and OSM Controller (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
draychev authored Nov 14, 2020
1 parent 495110c commit e533370
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cmd/osm-controller/osm-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,13 @@ func createControllerManagerForOSMResources(certManager certificate.Manager) err
}

log.Info().Msg("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
log.Error().Err(err).Msg("problem running manager")
return err
}
log.Info().Msg("Successfully running controller manager")
go func() {
// mgr.Start() below will block until stopped
// See: https://github.com/kubernetes-sigs/controller-runtime/blob/release-0.6/pkg/manager/internal.go#L507-L514
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
log.Error().Err(err).Msg("problem running manager")
}
}()

return nil
}

0 comments on commit e533370

Please sign in to comment.