Unverified Commit 58731ae6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #60524 from dims/temp-fix-for-kube-scheduler-leader-election

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Temporary fix for LeaderElect for kube-scheduler **What this PR does / why we need it**: kube-controller-manager defaults --leader-elect to true. We should do the same for kube-scheduler. kube-scheduler used to have this set to true, but it got lost during refactoring: efb2bb71 **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #59729 **Special notes for your reviewer**: **Release note**: ```release-note kube-scheduler: restores default leader election behavior. leader-elect command line parameter should "true" ```
parents 6201c0b8 882a01ec
......@@ -152,6 +152,9 @@ func NewOptions() (*Options, error) {
return nil, err
}
// TODO: we should fix this up better (PR 59732)
o.config.LeaderElection.LeaderElect = true
return o, nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment