package resourcequota
import "k8s.io/kubernetes/plugin/pkg/admission/resourcequota"
resourcequota enforces all incoming requests against any applied quota in the namespace context of the request
Index ¶
- func IncrementUsage(a admission.Attributes, status *api.ResourceQuotaStatus, client client.Interface) (bool, error)
- func NewResourceQuota(client client.Interface) admission.Interface
Functions ¶
func IncrementUsage ¶
func IncrementUsage(a admission.Attributes, status *api.ResourceQuotaStatus, client client.Interface) (bool, error)
IncrementUsage updates the supplied ResourceQuotaStatus object based on the incoming operation Return true if the usage must be recorded prior to admitting the new resource Return an error if the operation should not pass admission control
func NewResourceQuota ¶
NewResourceQuota creates a new resource quota admission control handler
Source Files ¶
admission.go doc.go
- Version
- v1.1.4-beta.0
- Published
- Dec 7, 2015
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 1 minute ago –
Tools for package owners.