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

define partition as number of non-updated pods should be reversed #1819

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

ABNER-1
Copy link
Member

@ABNER-1 ABNER-1 commented Nov 6, 2024

Ⅰ. Describe what this PR does

define partition as number of non-updated pods should be reversed

Ⅱ. Does this pull request fix one issue?

fixes #1813

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

Signed-off-by: Abner-1 <yuanyuxing.yyx@alibaba-inc.com>
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.99%. Comparing base (0d0031a) to head (26be87a).
Report is 113 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1819      +/-   ##
==========================================
+ Coverage   47.91%   49.99%   +2.07%     
==========================================
  Files         162      192      +30     
  Lines       23491    24641    +1150     
==========================================
+ Hits        11256    12319    +1063     
- Misses      11014    11047      +33     
- Partials     1221     1275      +54     
Flag Coverage Δ
unittests 49.99% <100.00%> (+2.07%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if rollingUpdateStrategy == nil || rollingUpdateStrategy.UnorderedUpdate == nil {
var indexes []int
for target := len(replicas) - 1; target >= updateMin; target-- {
for target := len(replicas) - 1; target >= updateMin && len(indexes) < maxUpdate; target-- {
Copy link
Member

Choose a reason for hiding this comment

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

is it necessary to add the maxUpdate comparison here , since maxUpdate will be checked in L72

Copy link
Member Author

Choose a reason for hiding this comment

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

In L41, we return indexes and will not go to the L72.

Copy link
Member

@furykerry furykerry left a comment

Choose a reason for hiding this comment

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

/lgtm

@zmberg zmberg merged commit 1880364 into openkruise:master Nov 11, 2024
43 of 44 checks passed
furykerry pushed a commit to furykerry/kruise that referenced this pull request Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request] Define Partition in asts as the number of pod with non-updated revisions
3 participants