Commit 882a01ec authored by Davanum Srinivas's avatar Davanum Srinivas

Temporary fix for LeaderElect for kube-scheduler

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
parent e30b6634
......@@ -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