Documentation ¶
Index ¶
Constants ¶
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 ¶
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 if this quota exceed limit Overload() (bool, 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.