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

Ansible: add leader election flags, use lease-based election #3457

Merged
merged 2 commits into from Jul 22, 2020

Conversation

jmrodri
Copy link
Member

@jmrodri jmrodri commented Jul 18, 2020

Description of the change:
Ansible operator: add leader election flags, use controller-runtime leader election

Motivation for the change:
In general, the controller-runtime leader election method (lease-based) is preferable for most use cases. In the future, if there is a use case to support leader-for-life, we can add another flag to let operator developers choose their leader election mechanism.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@jmrodri jmrodri changed the title Ansible: add leader election flags, use lease-based election [WIP] Ansible: add leader election flags, use lease-based election Jul 18, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 18, 2020
@joelanford joelanford mentioned this pull request Jul 18, 2020
92 tasks
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Juts missing a nit to pass in the CI
However, it shows great

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 18, 2020
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2020
@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@jmrodri jmrodri changed the title [WIP] Ansible: add leader election flags, use lease-based election Ansible: add leader election flags, use lease-based election Jul 20, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 20, 2020
@jmrodri jmrodri force-pushed the ansible-leader-election branch 3 times, most recently from 8697445 to 4fdaee9 Compare July 21, 2020 01:47
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 22, 2020
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 22, 2020
@jmrodri jmrodri merged commit 1190181 into operator-framework:master Jul 22, 2020
@jmrodri jmrodri deleted the ansible-leader-election branch July 22, 2020 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants