Skip to content

Implement leader election for manager#201

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
andymcc:master
Jul 16, 2020
Merged

Implement leader election for manager#201
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
andymcc:master

Conversation

@andymcc
Copy link
Copy Markdown
Member

@andymcc andymcc commented Jul 15, 2020

This adds integration with:
openshift/machine-api-operator#571

Copy link
Copy Markdown
Contributor

@cfergeau cfergeau left a comment

Choose a reason for hiding this comment

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

Can you add some context from openshift/machine-api-operator#571 to the commit log?

Using leader election will add stronger guarantees than we have today that only one controller is running at a time to protect against edge cases where the deployment replica could be increased or upgrades with permissive maxSurge.

Always welcome to have more context in a commit log :)

/lgtm

This adds integration with:
openshift/machine-api-operator#571

Adding 3 new cli arguments for configuring leader elections:
-leader-elect
-leader-elect-lease-duration int
-leader-elect-resource-namespace string

Using leader election will add stronger guarantees than we have today
that only one controller is running at a time to protect against edge
cases where the deployment replica could be increased or upgrades with
permissive maxSurge.
@andymcc
Copy link
Copy Markdown
Member Author

andymcc commented Jul 15, 2020

Thanks! I've added some more context based on the PRs that went into the other api-providers.

@cfergeau
Copy link
Copy Markdown
Contributor

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau

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

The pull request process is described here

Details 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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 16, 2020
@cfergeau
Copy link
Copy Markdown
Contributor

Bad news is that I have no idea what's going on with CI :(
/test e2e-libvirt

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit e4c93bb into openshift:master Jul 16, 2020
@andymcc
Copy link
Copy Markdown
Member Author

andymcc commented Jul 16, 2020

Thanks @cfergeau - may have been luck that it passed but glad it's in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants