Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use "leases" by default #1407

Merged
merged 1 commit into from
Sep 19, 2023
Merged

use "leases" by default #1407

merged 1 commit into from
Sep 19, 2023

Conversation

dsxing
Copy link
Contributor

@dsxing dsxing commented Sep 8, 2023

Ⅰ. Describe what this PR does

LeaderElectionResourceLock use "leases" by default

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Describe how to verify it

NONE

Ⅳ. Special notes for reviews

kubernetes/kubernetes#80289

@kruise-bot
Copy link

Welcome @dsxing! It looks like this is your first PR to openkruise/kruise 🎉

@kruise-bot kruise-bot added the size/XS size/XS: 0-9 label Sep 8, 2023
@dsxing dsxing changed the title Update main.go use "leases" by default Sep 8, 2023
@zmberg
Copy link
Member

zmberg commented Sep 8, 2023

@dsxing If default use leases, then upgrade kruise from 1.3.0 to 1.5.0 directly, there will have two leader a period of time.

@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2023

Codecov Report

Merging #1407 (a911c50) into master (a46e941) will increase coverage by 0.04%.
The diff coverage is n/a.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master    #1407      +/-   ##
==========================================
+ Coverage   48.23%   48.28%   +0.04%     
==========================================
  Files         153      153              
  Lines       21492    21492              
==========================================
+ Hits        10367    10377      +10     
+ Misses       9985     9977       -8     
+ Partials     1140     1138       -2     
Flag Coverage Δ
unittests 48.28% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dsxing
Copy link
Contributor Author

dsxing commented Sep 8, 2023

@dsxing If default use leases, then upgrade kruise from 1.3.0 to 1.5.0 directly, there will have two leader a period of time.

I see it as well, Upgrading from configmaps to leases requires an intermediate step, namely configmapleases. Version 1.3 uses configmaps, while versions 1.4 and 1.5 make use of configmapleases. I am wondering if versions beyond 1.5 can directly use leases. Versions 1.4 and 1.5 serve as transitional stages in this upgrade process.

@zmberg
Copy link
Member

zmberg commented Sep 8, 2023

use leases

Signed-off-by: dsxing <xingdashuaostr@126.com>
@dsxing
Copy link
Contributor Author

dsxing commented Sep 9, 2023

@dsxing Can you solve the issue, https://github.com/openkruise/kruise/pull/1407/checks?check_run_id=16603745643

Alright, it's done.

@zmberg
Copy link
Member

zmberg commented Sep 12, 2023

/lgtm

@zmberg
Copy link
Member

zmberg commented Sep 19, 2023

/approve

@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zmberg

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:

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

@kruise-bot kruise-bot merged commit 1a62466 into openkruise:master Sep 19, 2023
21 checks passed
@zmberg zmberg added this to the 1.6 milestone Mar 7, 2024
ppbits pushed a commit to ppbits/kruise that referenced this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants