python
python copied to clipboard
add support Lease-based leader election (rather than ConfigMaps) #1877
What type of PR is this?
/kind feature
What this PR does / why we need it:
Enhance leaderelection module to support V1Lease based lease lock.
Which issue(s) this PR fixes:
Fixes #1877
Special notes for your reviewer:
Have coded this such that the LeaderElectionRecord is unchanged to ensure backward compatibility with anyone using the existing structures.
Does this PR introduce a user-facing change?
None
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: rvlane Once this PR has been reviewed and has the lgtm label, please assign yliaog for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: rvlane / name: Rick Lane (bb0c3f444ba86dea5e50a4670b100dba9c55e863)
Welcome @rvlane!
It looks like this is your first PR to kubernetes-client/python 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes-client/python has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
@Invictus17 - can you please review this also? Thankis
I'm not able to assign myself as reviewer @rvlane.
@rvlane do you intend to complete the CLA/can you confirm your contribution is licensed under the Apache License 2.0? I'm interested in adapting it for inclusion in kubernetes_asyncio, but I need to first ensure that its inclusion is legitimate.
Thanks!
@JacobHenner I have been added to my company CLA and have approved the CLA just now.
/assign @Invictus17 @roycaihw /cc @Invictus17
@roycaihw: GitHub didn't allow me to request PR reviews from the following users: Invictus17.
Note that only kubernetes-client members and repo collaborators can review this PR, and authors cannot review their own PRs.
In response to this:
/assign @Invictus17 @roycaihw /cc @Invictus17
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-sigs/prow repository.
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
@fabianvf @roycaihw do you need help for the testing/review of this MR? I am interested for this feature as well!
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle rotten - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten