mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +00:00
Fixes exited messages when leaderelection lost
This commit is contained in:
@@ -210,7 +210,7 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
|
||||
default:
|
||||
// We lost the lock.
|
||||
klog.ErrorS(nil, "Leaderelection lost")
|
||||
os.Exit(1)
|
||||
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user