-
Notifications
You must be signed in to change notification settings - Fork 184
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
saving quota in GiB instead GB #2895
base: main
Are you sure you want to change the base?
Conversation
rchikatw
commented
Nov 13, 2024
•
edited
Loading
edited
- PVCs are in Gib and quota is in GB because of which pvc creation is restricted when the quota reaches around 95%
- Fix for https://issues.redhat.com/browse/DFBUGS-559
services/provider/server/server.go
Outdated
int64(consumerResource.Spec.StorageQuotaInGiB), | ||
resource.Giga, | ||
Hard: corev1.ResourceList{"requests.storage": *resource.NewQuantity( | ||
int64(consumerResource.Spec.StorageQuotaInGiB*1024*1024*1024), |
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.
reading only this line seems a bit confusing, did it occur to you that if only this line is read, it feels like we are multiplying a value which has GiB in it's name by 1024^3 resulting in something like Exbibyte?
maybe it only occurred to me, since the conversion is correct, approving it.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: leelavg, rchikatw The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
Signed-off-by: rchikatw <[email protected]>