admission

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(plugins []admission.Interface) error

Validate will call the Validate function in each plugin if they implement the Validator interface.

Types

type PluginInitializer

type PluginInitializer struct {
	ProjectCache                 *cache.ProjectCache
	DefaultNodeSelector          string
	OriginQuotaRegistry          quota.Registry
	RESTClientConfig             restclient.Config
	ClusterResourceQuotaInformer quotainformer.ClusterResourceQuotaInformer
	ClusterQuotaMapper           clusterquotamapping.ClusterQuotaMapper
	RegistryHostnameRetriever    registryhostname.RegistryHostnameRetriever
	SecurityInformers            securityv1informer.SecurityContextConstraintsInformer
	UserInformers                userinformer.SharedInformerFactory
}

func (*PluginInitializer) Initialize

func (i *PluginInitializer) Initialize(plugin admission.Interface)

Initialize will check the initialization interfaces implemented by each plugin and provide the appropriate initialization data

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 WantsDefaultNodeSelector

type WantsDefaultNodeSelector interface {
	SetDefaultNodeSelector(string)
	admission.InitializationValidator
}

type WantsDefaultRegistryFunc

type WantsDefaultRegistryFunc interface {
	SetDefaultRegistryFunc(func() (string, bool))
	admission.InitializationValidator
}

WantsDefaultRegistryFunc should be implemented by admission plugins that need to know the default registry address.

type WantsOriginQuotaRegistry

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

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

type WantsProjectCache

type WantsProjectCache interface {
	SetProjectCache(*cache.ProjectCache)
	admission.InitializationValidator
}

WantsProjectCache should be implemented by admission plugins that need a project cache

type WantsRESTClientConfig

type WantsRESTClientConfig interface {
	SetRESTClientConfig(restclient.Config)
	admission.InitializationValidator
}

WantsRESTClientConfig gives access to a RESTClientConfig. It's useful for doing unusual things with transports.

type WantsSecurityInformer

type WantsSecurityInformer interface {
	SetSecurityInformers(securityv1informer.SecurityContextConstraintsInformer)
	admission.InitializationValidator
}

type WantsUserInformer

type WantsUserInformer interface {
	SetUserInformer(userinformer.SharedInformerFactory)
	admission.InitializationValidator
}

Jump to

Keyboard shortcuts

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