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

koord-descheduler: update PodRef after Reservation Bound during migration #1096

Merged

Conversation

ZiMengSheng
Copy link
Contributor

Ⅰ. Describe what this PR does

this PR handle Reservation Bound Success and report boundPod to PodMigrationJob.Status.PodRef before check pod ready.

Ⅱ. Does this pull request fix one issue?

fixes #1093

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

Patch coverage: 77.77% and project coverage change: -0.03 ⚠️

Comparison is base (f8b4e31) 67.09% compared to head (50f0a39) 67.07%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1096      +/-   ##
==========================================
- Coverage   67.09%   67.07%   -0.03%     
==========================================
  Files         262      262              
  Lines       28960    28978      +18     
==========================================
+ Hits        19430    19436       +6     
- Misses       8173     8181       +8     
- Partials     1357     1361       +4     
Flag Coverage Δ
unittests 67.07% <77.77%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
...kg/descheduler/controllers/migration/controller.go 61.24% <77.77%> (+0.36%) ⬆️
...sor/collectors/beresource/be_resource_collector.go 67.82% <0.00%> (-6.09%) ⬇️
pkg/scheduler/plugins/coscheduling/core/gang.go 76.97% <0.00%> (-0.95%) ⬇️
pkg/util/httputil/reverseproxy.go 84.84% <0.00%> (-0.27%) ⬇️
pkg/koordlet/util/system/common_linux.go 66.94% <0.00%> (+2.47%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@jasonliu747 jasonliu747 left a comment

Choose a reason for hiding this comment

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

/lgtm

@koordinator-bot koordinator-bot bot added the lgtm label Mar 9, 2023
@eahydra eahydra changed the title koord-descheduler: handleReservationBoundSuccess koord-descheduler: update PodRef after Reservation during migration Mar 9, 2023
Signed-off-by: wangjianyu.wjy <wangjianyu.wjy@alibaba-inc.com>
@koordinator-bot koordinator-bot bot removed the lgtm label Mar 9, 2023
@ZiMengSheng ZiMengSheng changed the title koord-descheduler: update PodRef after Reservation during migration koord-descheduler: update PodRef after Reservation Bound during migration Mar 9, 2023
Copy link
Member

@eahydra eahydra left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eahydra

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

@koordinator-bot koordinator-bot bot merged commit 5706db8 into koordinator-sh:main Mar 9, 2023
@zwzhang0107 zwzhang0107 added this to the v1.2 milestone Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] migrationJob should update the bound pod of Reservation before check ready
4 participants