python icon indicating copy to clipboard operation
python copied to clipboard

add support Lease-based leader election (rather than ConfigMaps) #1877

Open rvlane opened this issue 11 months ago • 12 comments

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.:


rvlane avatar Dec 17 '24 22:12 rvlane

[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.

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

k8s-ci-robot avatar Dec 17 '24 22:12 k8s-ci-robot

CLA Signed

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:

k8s-ci-robot avatar Dec 17 '24 22:12 k8s-ci-robot

@Invictus17 - can you please review this also? Thankis

rvlane avatar Dec 18 '24 16:12 rvlane

I'm not able to assign myself as reviewer @rvlane.

Invictus17 avatar Dec 19 '24 04:12 Invictus17

@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 avatar Jan 06 '25 23:01 JacobHenner

@JacobHenner I have been added to my company CLA and have approved the CLA just now.

rvlane avatar Jan 07 '25 14:01 rvlane

/assign @Invictus17 @roycaihw /cc @Invictus17

roycaihw avatar Jan 15 '25 21:01 roycaihw

@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.

k8s-ci-robot avatar Jan 15 '25 21:01 k8s-ci-robot

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Apr 15 '25 21:04 k8s-triage-robot

/remove-lifecycle stale

JacobHenner avatar Apr 16 '25 01:04 JacobHenner

@fabianvf @roycaihw do you need help for the testing/review of this MR? I am interested for this feature as well!

MadJlzz avatar Jun 16 '25 09:06 MadJlzz

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Sep 22 '25 20:09 k8s-triage-robot

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Oct 22 '25 21:10 k8s-triage-robot