File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44package v1beta2
55
6+ import (
7+ corev1 "k8s.io/api/core/v1"
8+ )
9+
610// +kubebuilder:validation:Enum=Cordoned;Active
711type tenantState string
812
@@ -20,4 +24,6 @@ type TenantStatus struct {
2024 Size uint `json:"size"`
2125 // List of namespaces assigned to the Tenant.
2226 Namespaces []string `json:"namespaces,omitempty"`
27+ // Quota Usages (Tenant Scope)
28+ QuotaUsage map [string ]corev1.ResourceQuotaStatus
2329}
Original file line number Diff line number Diff line change 1+ apiVersion : capsule.clastix.io/v1beta2
2+ kind : Tenant
3+ metadata :
4+ name : solar
5+ spec :
6+ owners :
7+ - name : alice
8+ kind : User
9+ namespaceOptions :
10+ quota : 3
11+ resourceQuotas :
12+ scope : Tenant
13+ items :
14+ - hard :
15+ limits.cpu : " 2"
16+ limits.memory : 2Gi
17+ requests.cpu : " 2"
18+ requests.memory : 2Gi
19+ - hard :
20+ pods : " 3"
You can’t perform that action at this time.
0 commit comments