diff --git a/cmd/manager/app/app.go b/cmd/manager/app/app.go index 0802c696..3f9d8c87 100644 --- a/cmd/manager/app/app.go +++ b/cmd/manager/app/app.go @@ -80,7 +80,12 @@ func Run(opt *options.Options) error { } srv := server.NewManager(cfg) - go srv.Run() + go func() { + err := srv.Run() + if err != nil { + klog.Fatalf("error occurred when srv Run, err: %+v", err) + } + }() waitTimer := time.NewTimer(opt.WaitTimeout) for !srv.Ready() {