-
Notifications
You must be signed in to change notification settings - Fork 430
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
ResourceQuota: Hard and Used are not ResourceList #31
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
you may have better luck filing issue on the main kubernetes repository. This is just a mirror repo and it is not monitored for issues. See https://github.com/kubernetes/api#things-you-should-not-do /close |
@SergeyKanzhelev: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
When I was using ResourceQuotaStatus.Hard, I found a mistake.
Hard
andUsed
are ResourceList, but actually they are not.When you define
Hard
as a ResourceList, I can call methods ofResourceList
on it, So I can callResourceQuota.Status.Hard.CPU()
for example, but it returns nothing becauseHard
containsLimits
andRequests
likeResourceRequirements
type.I know you define some constants for getting
requests
andlimits
from theHard
'sResourceList
map(likeResourceRequestsCPU
).Can you explain why you didn't use
ResourceRequirements
as the type of theHard
orUsed
?Can I fix it by changing types to
ResourceRequirements
?The text was updated successfully, but these errors were encountered: