quota

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceQuotasStatusByNamespace

func GetResourceQuotasStatusByNamespace(namespaceStatuses configv1alpha1.AccountQuotasStatusByNamespace, namespace string) (corev1.ResourceQuotaStatus, bool)

func NewAccountResourceQuota

func NewAccountResourceQuota(ctrlCtx *controllers.Context) admission.ValidationInterface

NewAccountResourceQuota configures an admission controller that can enforce accountQuota constraints using the provided registry. The registry must have the capability to handle group/kinds that are persisted by the server this admission controller is intercepting

func NewQuotaConfiguration

func NewQuotaConfiguration(f quota.ListerForResourceFunc) quota.Configuration

NewQuotaConfiguration creates a new quota configuration that can be used to create quota registry

Types

type ByName

type ByName []corev1.ResourceQuota

func (ByName) Len

func (v ByName) Len() int

func (ByName) Less

func (v ByName) Less(i, j int) bool

func (ByName) Swap

func (v ByName) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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