clusterresourcequota

package
v0.0.0-...-7c5911e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterResourceQuota

func NewClusterResourceQuota() (admission.Interface, error)

NewClusterResourceQuota configures an admission controller that can enforce clusterQuota 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 NewInitializer

func NewInitializer(
	clusterResourceQuotaInformer quotainformer.ClusterResourceQuotaInformer,
	clusterQuotaMapper clusterquotamapping.ClusterQuotaMapper,
	quotaRegistry quota.Registry,
) admission.PluginInitializer

func Register

func Register(plugins *admission.Plugins)

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)

type DefaultLockFactory

type DefaultLockFactory struct {
	// contains filtered or unexported fields
}

func NewDefaultLockFactory

func NewDefaultLockFactory() *DefaultLockFactory

func (*DefaultLockFactory) GetLock

func (f *DefaultLockFactory) GetLock(key string) sync.Locker

type LockFactory

type LockFactory interface {
	GetLock(string) sync.Locker
}

type WantsClusterQuota

WantsClusterQuota should be implemented by admission plugins that need to know how to map between cluster quota and namespaces and get access to the informer.

type WantsOriginQuotaRegistry

type WantsOriginQuotaRegistry interface {
	SetOriginQuotaRegistry(quota.Registry)
	admission.InitializationValidator
}

WantsQuotaRegistry should be implemented by admission plugins that need a quota registry

Jump to

Keyboard shortcuts

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