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: enable allocateOnce when creating Reservation #494

Conversation

eahydra
Copy link
Member

@eahydra eahydra commented Aug 17, 2022

Signed-off-by: Joseph joseph.t.lee@outlook.com

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

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

@eahydra eahydra requested review from hormes and saintube and removed request for FillZpp August 17, 2022 07:19
@codecov
Copy link

codecov bot commented Aug 17, 2022

Codecov Report

Merging #494 (1b1f0d6) into main (ade49a9) will increase coverage by 0.08%.
The diff coverage is 84.00%.

@@            Coverage Diff             @@
##             main     #494      +/-   ##
==========================================
+ Coverage   67.96%   68.04%   +0.08%     
==========================================
  Files         150      150              
  Lines       16287    16294       +7     
==========================================
+ Hits        11069    11088      +19     
+ Misses       4394     4383      -11     
+ Partials      824      823       -1     
Flag Coverage Δ
unittests 68.04% <84.00%> (+0.08%) ⬆️

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

Impacted Files Coverage Δ
...kg/descheduler/controllers/migration/controller.go 65.79% <84.00%> (+1.02%) ⬆️
pkg/koordlet/runtimehooks/reconciler/reconciler.go 81.05% <0.00%> (+9.47%) ⬆️

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

@eahydra eahydra force-pushed the descheduler_support_reservation_allocateonce branch from 5516ee5 to ed18806 Compare August 17, 2022 07:55
@koordinator-bot koordinator-bot bot added size/L and removed size/S labels Aug 17, 2022
@eahydra
Copy link
Member Author

eahydra commented Aug 17, 2022

/hold

@eahydra eahydra force-pushed the descheduler_support_reservation_allocateonce branch from ed18806 to 7c8b39c Compare August 17, 2022 09:26
@eahydra
Copy link
Member Author

eahydra commented Aug 17, 2022

/hold cancel

Signed-off-by: Joseph <joseph.t.lee@outlook.com>
@eahydra eahydra force-pushed the descheduler_support_reservation_allocateonce branch from 7c8b39c to 1b1f0d6 Compare August 17, 2022 09:33
@eahydra eahydra changed the title koord-scheduler: enable allocateOnce when creating Reservation koord-descheduler: enable allocateOnce when creating Reservation Aug 17, 2022
@hormes
Copy link
Member

hormes commented Aug 17, 2022

/lgtm
/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hormes

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

@@ -690,7 +697,7 @@ func (r *Reconciler) waitForPendingPodScheduled(ctx context.Context, job *sev1al
klog.Errorf("Failed to delete reservation, MigrationJob: %s, err: %v", job.Name, err)
}

job.Status.Phase = sev1alpha1.PodMigrationJobSucceed
job.Status.Phase = sev1alpha1.PodMigrationJobSucceeded
Copy link
Member

Choose a reason for hiding this comment

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

can we remove the TODO in L694

@koordinator-bot koordinator-bot bot merged commit 01b6795 into koordinator-sh:main Aug 17, 2022
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.

None yet

3 participants