Skip to content

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

Merged
jmrodri merged 2 commits intooperator-framework:masterfrom
jmrodri:ansible-leader-election
Jul 22, 2020
Merged

Ansible: add leader election flags, use lease-based election#3457
jmrodri merged 2 commits intooperator-framework:masterfrom
jmrodri:ansible-leader-election

Conversation

@jmrodri
Copy link
Copy Markdown
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
Comment thread pkg/ansible/flags/flag.go
Copy link
Copy Markdown
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
Copy Markdown
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

@jmrodri jmrodri force-pushed the ansible-leader-election branch from d859ddc to 1ea183f Compare July 20, 2020 21:40
@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
Copy Markdown

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
Comment thread pkg/ansible/flags/flag.go
@jmrodri jmrodri force-pushed the ansible-leader-election branch from 4fdaee9 to 918ac16 Compare July 22, 2020 15:34
@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
@jmrodri jmrodri force-pushed the ansible-leader-election branch from 918ac16 to ebfd62c Compare July 22, 2020 15:39
@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.

5 participants