mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-19 12:36:39 +00:00
* chore: add nwa Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: update helm-schema version Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: update helm-schema version Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
24 lines
712 B
Go
24 lines
712 B
Go
// Copyright 2020-2025 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package api
|
|
|
|
import corev1 "k8s.io/api/core/v1"
|
|
|
|
// +kubebuilder:validation:Enum=Tenant;Namespace
|
|
type ResourceQuotaScope string
|
|
|
|
const (
|
|
ResourceQuotaScopeTenant ResourceQuotaScope = "Tenant"
|
|
ResourceQuotaScopeNamespace ResourceQuotaScope = "Namespace"
|
|
)
|
|
|
|
// +kubebuilder:object:generate=true
|
|
|
|
type ResourceQuotaSpec struct {
|
|
// +kubebuilder:default=Tenant
|
|
// Define if the Resource Budget should compute resource across all Namespaces in the Tenant or individually per cluster. Default is Tenant
|
|
Scope ResourceQuotaScope `json:"scope,omitempty"`
|
|
Items []corev1.ResourceQuotaSpec `json:"items,omitempty"`
|
|
}
|