Skip to content
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

Fix logic for disabling/enabling leader election #202

Closed

Conversation

courtneypacheco
Copy link
Contributor

Prior to this suggested PR, it was impossible to disable leader election because LeaderElectID was set to a specific value. In other words, setting LeaderElectID in main.go automatically enables leader election, even if you manually modify the relevant manifests to set the leader election to false. The only way to actually disable leader election is to create an if-else conditional that creates a manager without the leader election variables passed into the constructor.

Prior to this commit, it was impossible to disable leader election
because `LeaderElectID` was set to a specific value. In other
words, setting `LeaderElectID` in `main.go` automatically enables
leader election, even if you manually modify the relevant manifests
to set the leader election to false. The only way to actually
disable leader election is to create an if-else conditional that
creates a manager *without* the leader election variables passed
into the constructor.
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 16, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: courtneypacheco
To complete the pull request process, please assign arangogutierrez after the PR has been reviewed.
You can assign the PR to them by writing /assign @arangogutierrez in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@courtneypacheco
Copy link
Contributor Author

/assign @ArangoGutierrez

@courtneypacheco
Copy link
Contributor Author

/retest-required

@ArangoGutierrez
Copy link
Contributor

Not sure if the problem is on our end, of if this is the right way to fix this
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 17, 2021
@ArangoGutierrez
Copy link
Contributor

/hold cancel

@ArangoGutierrez
Copy link
Contributor

/close

@openshift-ci openshift-ci bot closed this Aug 31, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 31, 2021

@ArangoGutierrez: Closed this PR.

In response to this:

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants