Documentation ¶
Index ¶
- func NewClusterResourceQuota() (admission.Interface, error)
- func NewInitializer(clusterResourceQuotaInformer quotainformer.ClusterResourceQuotaInformer, ...) admission.PluginInitializer
- func Register(plugins *admission.Plugins)
- type ByName
- type DefaultLockFactory
- type LockFactory
- type WantsClusterQuota
- type WantsOriginQuotaRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterResourceQuota ¶
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
Types ¶
type ByName ¶
type ByName []corev1.ResourceQuota
type DefaultLockFactory ¶
type DefaultLockFactory struct {
// contains filtered or unexported fields
}
func NewDefaultLockFactory ¶
func NewDefaultLockFactory() *DefaultLockFactory
type LockFactory ¶
type WantsClusterQuota ¶
type WantsClusterQuota interface { SetClusterQuota(clusterquotamapping.ClusterQuotaMapper, quotainformer.ClusterResourceQuotaInformer) admission.InitializationValidator }
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
Click to show internal directories.
Click to hide internal directories.