quota

package
v0.0.0-...-1d80bfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Finalizer = "finalizers.kubeworkz.io/quota"
View Source
const ResourceNvidiaGPU v1.ResourceName = "requests.nvidia.com/gpu"
View Source
const SubFix = "quota"

Variables

Functions

func ClearQuotas

func ClearQuotas(l v1.ResourceList) v1.ResourceList

ClearQuotas clear all quotas of give

func ZeroQ

func ZeroQ() resource.Quantity

ZeroQ give the value of zero

Types

type Interface

type Interface interface {
	// Parent get parent quota of current quota return nil
	// if its orphan
	Parent() (*quotav1.KubeResourceQuota, 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL