Skip to content

Commit 9d96bd5

Browse files
authored
Merge branch 'main' into docs/issue-85-karmada-federation-design
2 parents 9734bf6 + c39d4b7 commit 9d96bd5

4 files changed

Lines changed: 36 additions & 88 deletions

File tree

config/components/quota/grant-creation-policy.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

config/components/quota/kustomization.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

config/components/quota/resource-registrations.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,39 @@ spec:
5353
- compute.datumapis.com/instance/cpu-allocated
5454
- compute.datumapis.com/instance/memory-allocated
5555
- compute.datumapis.com/instance/uptime-seconds
56+
metricRules:
57+
- selector:
58+
apiGroup: compute.datumapis.com
59+
kind: Workload
60+
metricCosts:
61+
compute.datumapis.com/workloads: 1
62+
quota:
63+
limits:
64+
- name: compute-workloads
65+
metric: compute.datumapis.com/workloads
66+
consumerType:
67+
apiGroup: resourcemanager.miloapis.com
68+
kind: Project
69+
unit: instance
70+
defaultLimit: 1000
71+
- name: compute-instances
72+
metric: compute.datumapis.com/instances
73+
consumerType:
74+
apiGroup: resourcemanager.miloapis.com
75+
kind: Project
76+
unit: instance
77+
defaultLimit: 10
78+
- name: compute-vcpus
79+
metric: compute.datumapis.com/vcpus
80+
consumerType:
81+
apiGroup: resourcemanager.miloapis.com
82+
kind: Project
83+
unit: millicore
84+
defaultLimit: 40000
85+
- name: compute-memory
86+
metric: compute.datumapis.com/memory
87+
consumerType:
88+
apiGroup: resourcemanager.miloapis.com
89+
kind: Project
90+
unit: MiB
91+
defaultLimit: 81920

0 commit comments

Comments
 (0)