-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The command line option to disable leader election does not function as intended #201
Comments
I want to add that even modifying the relevant manifests to set |
Should be fixed with PR #202 |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
In the
main.go
file in the main directory, a command line option exists for disabling leader election, and the default value indicates that leader election should be turned off. However, leader election is still enabled anyways:I think this problem occurs because
LeaderElectionID
is provided in the manager creation step:If we remove
LeaderElectionID
andLeaderElection
, then everything works as intended. If we remove justLeaderElectionID
and leaveLeaderElection
there, an error occurs saying thatLeaderElectionID
must be defined, even thoughLeaderElection
is set tofalse
by default.A better approach to this problem is to write an if-else conditional that says "If leader election is enabled, then [...]. Else, [...]", rather than providing a Leader election ID and relying on
LeaderElection
to disable Leader Election (since the true/false value of LeaderElection is ignored whenLeaderElectionID
is provided).Will provide a PR fix for this soon.
The text was updated successfully, but these errors were encountered: