mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 22:29:32 +00:00
Replace klog with non-exiting fork
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
90960ebf4e
commit
29c8b238e5
@@ -172,7 +172,9 @@ func runControllers(ctx context.Context, wg *sync.WaitGroup, config *Config) err
|
||||
go func() {
|
||||
start(ctx)
|
||||
<-ctx.Done()
|
||||
logrus.Fatal("controllers exited")
|
||||
if err := ctx.Err(); err != nil && !errors.Is(err, context.Canceled) {
|
||||
logrus.Fatalf("controllers exited: %v", err)
|
||||
}
|
||||
}()
|
||||
} else {
|
||||
go leader.RunOrDie(ctx, "", version.Program, sc.K8s, start)
|
||||
|
||||
Reference in New Issue
Block a user