ingress-nginx icon indicating copy to clipboard operation
ingress-nginx copied to clipboard

feat: using LeaseLock for election.

Open tao12345666333 opened this issue 3 years ago • 2 comments

What this PR does / why we need it:

We removed the use of configmap as an election lock, so we will use the Lease API to complete the election.

Before this, we used MultiLock to facilitate smooth migration of existing users of ingress-nginx from configmap to LeaseLock.

Signed-off-by: Jintao Zhang [email protected]

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Documentation only

Which issue/s this PR fixes

xref: https://github.com/kubernetes/ingress-nginx/issues/8091 https://github.com/kubernetes/ingress-nginx/pull/8733/files#r907644422

How Has This Been Tested?

Checklist:

  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I've read the CONTRIBUTION guide
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

tao12345666333 avatar Aug 10 '22 19:08 tao12345666333

@tao12345666333: This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

k8s-ci-robot avatar Aug 10 '22 19:08 k8s-ci-robot

/lgtm Thanks!

rikatz avatar Aug 22 '22 18:08 rikatz

/lgtm

rikatz avatar Aug 22 '22 22:08 rikatz

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rikatz, tao12345666333

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • ~~OWNERS~~ [rikatz,tao12345666333]

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

k8s-ci-robot avatar Aug 22 '22 22:08 k8s-ci-robot