Skip to content

Commit 3ae30cf

Browse files
committed
feat(quota): add display names and descriptions to compute quota limits
Populate displayName/description on each spec.quota.limits[] entry so the service-catalog quota fan-out stamps kubernetes.io/display-name and kubernetes.io/description on the generated ResourceRegistrations. Portals (cloud-portal Quotas) then render readable names (Instances, vCPUs, Memory, Workloads) instead of raw compute.datumapis.com/* metric keys. Requires the QuotaLimitSpec display fields from milo-os/service-catalog#41.
1 parent c8d5c1c commit 3ae30cf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

config/components/service-catalog/service-configuration.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,35 @@ spec:
6262
quota:
6363
limits:
6464
- name: compute-workloads
65+
displayName: Workloads
66+
description: Maximum number of workloads that can be created within a project.
6567
metric: compute.datumapis.com/workloads
6668
consumerType:
6769
apiGroup: resourcemanager.miloapis.com
6870
kind: Project
6971
unit: instance
7072
defaultLimit: 1000
7173
- name: compute-instances
74+
displayName: Instances
75+
description: Maximum number of compute instances that can run within a project.
7276
metric: compute.datumapis.com/instances
7377
consumerType:
7478
apiGroup: resourcemanager.miloapis.com
7579
kind: Project
7680
unit: instance
7781
defaultLimit: 10
7882
- name: compute-vcpus
83+
displayName: vCPUs
84+
description: Maximum total vCPUs (in millicores) allocatable to instances within a project.
7985
metric: compute.datumapis.com/vcpus
8086
consumerType:
8187
apiGroup: resourcemanager.miloapis.com
8288
kind: Project
8389
unit: millicore
8490
defaultLimit: 40000
8591
- name: compute-memory
92+
displayName: Memory
93+
description: Maximum total memory (in MiB) allocatable to instances within a project.
8694
metric: compute.datumapis.com/memory
8795
consumerType:
8896
apiGroup: resourcemanager.miloapis.com

0 commit comments

Comments
 (0)