Skip to content
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

renamed the attributes with GiB and MiB removing GB and MB #164

Merged
merged 4 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/coldfront_plugin_cloud/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ class CloudAllocationAttribute:
###########################################################
# OpenStack Quota Attributes
QUOTA_INSTANCES = 'OpenStack Compute Instance Quota'
QUOTA_RAM = 'OpenStack Compute RAM Quota'
QUOTA_RAM = 'OpenStack Compute RAM Quota (MiB)'
QUOTA_VCPU = 'OpenStack Compute vCPU Quota'

QUOTA_VOLUMES = 'OpenStack Volume Quota'
QUOTA_VOLUMES_GB = 'OpenStack Volume GB Quota'
QUOTA_VOLUMES = 'OpenStack Number of Volumes Quota'
QUOTA_VOLUMES_GB = 'OpenStack Volume Quota (GiB)'

QUOTA_FLOATING_IPS = 'OpenStack Floating IP Quota'

Expand All @@ -83,9 +83,9 @@ class CloudAllocationAttribute:
###########################################################
# OpenShift Quota Attributes
QUOTA_LIMITS_CPU = 'OpenShift Limit on CPU Quota'
QUOTA_LIMITS_MEMORY = 'OpenShift Limit on RAM Quota (MB)'
QUOTA_LIMITS_EPHEMERAL_STORAGE_GB = 'OpenShift Limit on Ephemeral Storage Quota (GB)'
QUOTA_REQUESTS_STORAGE = 'OpenShift Request on Storage Quota (GB)'
QUOTA_LIMITS_MEMORY = 'OpenShift Limit on RAM Quota (MiB)'
QUOTA_LIMITS_EPHEMERAL_STORAGE_GB = 'OpenShift Limit on Ephemeral Storage Quota (GiB)'
QUOTA_REQUESTS_STORAGE = 'OpenShift Request on Storage Quota (GiB)'
QUOTA_REQUESTS_GPU = 'OpenShift Request on GPU Quota'
QUOTA_PVC = 'OpenShift Persistent Volume Claims Quota'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@
('OpenShift Limit on RAM Quota', {
'name': 'OpenShift Limit on RAM Quota (MB)'
}),
('OpenStack Volume Quota', {
'name': 'OpenStack Number of Volumes Quota'
}),
('OpenStack Compute RAM Quota', {
'name': 'OpenStack Compute RAM Quota (MiB)'
}),
('OpenStack Volume GB Quota', {
'name': 'OpenStack Volume Quota (GiB)'
}),
('OpenShift Limit on RAM Quota (MB)', {
'name': 'OpenShift Limit on RAM Quota (MiB)'
}),
('OpenShift Limit on Ephemeral Storage Quota (GB)', {
'name': 'OpenShift Limit on Ephemeral Storage Quota (GiB)'
}),
('OpenShift Request on Storage Quota (GB)', {
'name': 'OpenShift Request on Storage Quota (GiB)'
}),
]

RESOURCE_ATTRIBUTE_MIGRATIONS = [
Expand Down
Loading