Repository navigation
Move hardcoded quota names from attributes.py to tests #324
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
base: main
Are you sure you want to change the base?
Changes from all commits
1904e82
9b2d0e6
7c550f5
162ace1
a51142f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the hardcoded quota strings from this file will be more complicated, as we are trying to do a more significant refactor. Refer to this comment to understand the bigger idea of what we are trying to achieve. In summary, we want to encode in the quota display name information about the key of the quota on This refactor will be somewhat significant, so for now, I would suggest that you revert this file, and replace references to |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| from coldfront_plugin_cloud.attributes import * # noqa: F403 | ||
|
|
||
|
|
||
| # OpenStack Quota Attributes | ||
| QUOTA_INSTANCES = "OpenStack Compute Instance Quota" | ||
| QUOTA_RAM = "OpenStack Compute RAM Quota (MiB)" | ||
| QUOTA_VCPU = "OpenStack Compute vCPU Quota" | ||
|
|
||
| QUOTA_VOLUMES = "OpenStack Number of Volumes Quota" | ||
| QUOTA_VOLUMES_GB = "OpenStack Volume Quota (GiB)" | ||
|
|
||
| QUOTA_FLOATING_IPS = "OpenStack Floating IP Quota" | ||
| QUOTA_NETWORKS = "Openstack Network Quota" | ||
|
|
||
| QUOTA_OBJECT_GB = "OpenStack Swift Quota (GiB)" | ||
|
|
||
| # OpenShift Quota Attributes | ||
| QUOTA_LIMITS_CPU = "OpenShift Limit on CPU Quota" | ||
| QUOTA_LIMITS_MEMORY = "OpenShift Limit on RAM Quota (MiB)" | ||
| QUOTA_LIMITS_EPHEMERAL_STORAGE_GB = "OpenShift Limit on Ephemeral Storage Quota (GiB)" | ||
| QUOTA_REQUESTS_NESE_STORAGE = "OpenShift Request on NESE Storage Quota (GiB)" | ||
| QUOTA_REQUESTS_IBM_STORAGE = "OpenShift Request on IBM Storage Quota (GiB)" | ||
| QUOTA_REQUESTS_GPU = "OpenShift Request on GPU Quota" | ||
| QUOTA_REQUESTS_VM_GPU_A100_SXM4 = "OpenShift Request on GPU A100 SXM4" | ||
| QUOTA_REQUESTS_VM_GPU_V100 = "OpenShift Request on GPU V100" | ||
| QUOTA_REQUESTS_VM_GPU_H100 = "OpenShift Request on GPU H100" | ||
| QUOTA_PVC = "OpenShift Persistent Volume Claims Quota" |
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.
Thank you for the comment! It helps clarify why we still have one attribute