Skip to content

Commit 51fc4b1

Browse files
committed
feat: functional appsets
1 parent 426fc11 commit 51fc4b1

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

api/v1beta2/tenant_status.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
package v1beta2
55

6+
import (
7+
corev1 "k8s.io/api/core/v1"
8+
)
9+
610
// +kubebuilder:validation:Enum=Cordoned;Active
711
type 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
}

test.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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"

0 commit comments

Comments
 (0)