-
Notifications
You must be signed in to change notification settings - Fork 65
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
fix: quota is not calculated correctly #161
Conversation
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
9ba0bf3
to
17b3db9
Compare
@niladrih could you please help to review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for this fix. You'd have to fix the unit test TestConvertToK as well..
f3f052f
to
d08acc7
Compare
Signed-off-by: 张铭 <[email protected]>
Signed-off-by: 张铭 <[email protected]>
Signed-off-by: 张铭 <[email protected]>
Signed-off-by: 张铭 <[email protected]> Signed-off-by: 张铭 <[email protected]>
71f12c6
to
fb8c03f
Compare
@niladrih Done, could you please help to have a look again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Pull Request template
Why is this PR required? What issue does it fix?:
If the pvc storage is 1G, which means 1073741824Byte. The quota returned from convertToK() is 1073742k which is bigger than expected. While, the correct result shall be 1048576k
What this PR does?:
Fix the quota calculation logic
Does this PR require any upgrade changes?:
No
If the changes in this PR are manually verified, list down the scenarios covered::
The same scenariom, the quota returned is 1048576k after fix
Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
<type>(<scope>): <subject>