admission

package
v3.7.0-0.alpha.1.546.f... Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: Apache-2.0 Imports: 16 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 {
	OpenshiftClient                 client.Interface
	OpenshiftInternalImageClient    imageclient.Interface
	OpenshiftInternalTemplateClient templateclient.Interface
	ProjectCache                    *cache.ProjectCache
	OriginQuotaRegistry             quota.Registry
	Authorizer                      kauthorizer.Authorizer
	JenkinsPipelineConfig           configapi.JenkinsPipelineConfig
	RESTClientConfig                restclient.Config
	Informers                       kinternalinformers.SharedInformerFactory
	ClusterResourceQuotaInformer    quotainformer.ClusterResourceQuotaInformer
	ClusterQuotaMapper              clusterquotamapping.ClusterQuotaMapper
	RegistryHostnameRetriever       imageapi.RegistryHostnameRetriever
	SecurityInformers               securityinformer.SharedInformerFactory
	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 WantsAuthorizer added in v1.1.4

type WantsAuthorizer interface {
	SetAuthorizer(kauthorizer.Authorizer)
	admission.Validator
}

WantsAuthorizer should be implemented by admission plugins that need access to the Authorizer interface

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 WantsDefaultRegistryFunc added in v1.3.0

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

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

type WantsDeprecatedOpenshiftClient

type WantsDeprecatedOpenshiftClient interface {
	SetDeprecatedOpenshiftClient(client.Interface)
	admission.Validator
}

WantDeprecatedOpenshiftClient should be implemented by admission plugins that need an Openshift client

type WantsInternalKubernetesInformers

type WantsInternalKubernetesInformers interface {
	SetInternalKubernetesInformers(kinternalinformers.SharedInformerFactory)
	admission.Validator
}

WantsInternalKubernetesInformers should be implemented by admission plugins that need the internal kubernetes informers.

type WantsJenkinsPipelineConfig added in v1.3.0

type WantsJenkinsPipelineConfig interface {
	SetJenkinsPipelineConfig(jenkinsConfig configapi.JenkinsPipelineConfig)
	admission.Validator
}

WantsJenkinsPipelineConfig gives access to the JenkinsPipelineConfig. This is a historical oddity. It's likely that what we really wanted was this as an admission plugin config

type WantsOpenshiftInternalImageClient

type WantsOpenshiftInternalImageClient interface {
	SetOpenshiftInternalImageClient(imageclient.Interface)
	admission.Validator
}

WantsOpenshiftInternalImageClient should be implemented by admission plugins that need an Openshift internal image client

type WantsOpenshiftInternalTemplateClient

type WantsOpenshiftInternalTemplateClient interface {
	SetOpenShiftInternalTemplateClient(templateclient.Interface)
	admission.Validator
}

WantsOpenshiftInternalTemplateClient should be implemented by admission plugins that need an Openshift internal template client

type WantsOriginQuotaRegistry added in v1.3.0

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

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

type WantsProjectCache

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

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

type WantsRESTClientConfig added in v1.3.0

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

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

type WantsSecurityInformer

type WantsSecurityInformer interface {
	SetSecurityInformers(securityinformer.SharedInformerFactory)
	admission.Validator
}

type WantsUserInformer

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

Jump to

Keyboard shortcuts

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