Documentation ¶
Index ¶
Constants ¶
View Source
const Finalizer = "finalizers.kubecube.io/quota"
View Source
const ResourceNvidiaGPU v1.ResourceName = "requests.nvidia.com/gpu"
View Source
const SubFix = "quota"
Variables ¶
View Source
var ResourceNames = []v1.ResourceName{ v1.ResourceRequestsCPU, v1.ResourceLimitsCPU, v1.ResourceRequestsMemory, v1.ResourceLimitsMemory, v1.ResourceRequestsEphemeralStorage, v1.ResourceLimitsEphemeralStorage, v1.ResourceRequestsStorage, v1.ResourceCPU, v1.ResourceMemory, v1.ResourceStorage, v1.ResourceEphemeralStorage, ResourceNvidiaGPU, v1.ResourcePods, }
Functions ¶
func ClearQuotas ¶ added in v1.1.0
func ClearQuotas(l v1.ResourceList) v1.ResourceList
ClearQuotas clear all quotas of give
Types ¶
type Interface ¶
type Interface interface { // Parent get parent quota of current quota return nil // if its orphan Parent() (*quotav1.CubeResourceQuota, error) // Overload return true and reason if this quota exceed limit Overload() (bool, string, error) // UpdateParentStatus will update parent used resource // according to this resource quota. This operation must // be idempotent. UpdateParentStatus(flush bool) error }
Click to show internal directories.
Click to hide internal directories.