Skip to content

apis: defined Reservation.Spec.AllocateOnce as pointer #1273

Merged
koordinator-bot[bot] merged 1 commit intokoordinator-sh:mainfrom
eahydra:fix_reservation_allocateonce_tags
May 8, 2023
Merged

apis: defined Reservation.Spec.AllocateOnce as pointer #1273
koordinator-bot[bot] merged 1 commit intokoordinator-sh:mainfrom
eahydra:fix_reservation_allocateonce_tags

Conversation

@eahydra
Copy link
Member

@eahydra eahydra commented May 8, 2023

Ⅰ. Describe what this PR does

Defined Reservation.Spec.AllocateOnce as pointer.
Previously, the default value of AllocateOnce was set to true, but because of the empty tag, AllocateOnce could not be set to false, which caused problems in Reservation reuse scenarios.

In the previous test, this problem was not exposed because the CRD Schema was not updated into test cluster.

Ⅱ. 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 FillZpp and hormes May 8, 2023 03:51
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Patch coverage: 62.50% and project coverage change: -0.02 ⚠️

Comparison is base (96b6c0b) 65.13% compared to head (e0c6d15) 65.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1273      +/-   ##
==========================================
- Coverage   65.13%   65.12%   -0.02%     
==========================================
  Files         312      312              
  Lines       32709    32709              
==========================================
- Hits        21306    21302       -4     
- Misses       9845     9852       +7     
+ Partials     1558     1555       -3     
Flag Coverage Δ
unittests 65.12% <62.50%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
pkg/scheduler/plugins/reservation/transformer.go 63.09% <0.00%> (-1.99%) ⬇️
...cheduler/controllers/migration/reservation/util.go 64.10% <100.00%> (ø)
...duler/plugins/reservation/controller/controller.go 74.71% <100.00%> (ø)
pkg/scheduler/plugins/reservation/plugin.go 84.93% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

Signed-off-by: Joseph <joseph.t.lee@outlook.com>
@eahydra eahydra force-pushed the fix_reservation_allocateonce_tags branch from 6f29c9e to e0c6d15 Compare May 8, 2023 05:39
@eahydra eahydra changed the title apis: remove AllocateOnce field empty tag of Reservation apis: defined Reservation.Spec.AllocateOnce as pointer May 8, 2023
@koordinator-bot koordinator-bot bot added size/M and removed size/XS labels May 8, 2023
@eahydra eahydra requested a review from jasonliu747 May 8, 2023 06:39
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

Copy link
Member

@FillZpp FillZpp left a comment

Choose a reason for hiding this comment

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

/lgtm

@eahydra
Copy link
Member Author

eahydra commented May 8, 2023

/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eahydra, FillZpp, jasonliu747

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 7d8e93a into koordinator-sh:main May 8, 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.

3 participants