Documentation ¶
Index ¶
- func Validate(plugins []admission.Interface) error
- type PluginInitializer
- type WantsAuthorizer
- type WantsClusterQuotaMapper
- type WantsDefaultRegistryFunc
- type WantsGroupCache
- type WantsInformers
- type WantsJenkinsPipelineConfig
- type WantsOpenshiftClient
- type WantsOriginQuotaRegistry
- type WantsProjectCache
- type WantsRESTClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginInitializer ¶
type PluginInitializer struct { OpenshiftClient client.Interface ProjectCache *cache.ProjectCache OriginQuotaRegistry quota.Registry Authorizer kauthorizer.Authorizer JenkinsPipelineConfig configapi.JenkinsPipelineConfig RESTClientConfig restclient.Config Informers shared.InformerFactory ClusterQuotaMapper clusterquotamapping.ClusterQuotaMapper DefaultRegistryFn imageapi.DefaultRegistryFunc GroupCache *usercache.GroupCache }
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 WantsClusterQuotaMapper ¶ added in v1.3.0
type WantsClusterQuotaMapper interface { SetClusterQuotaMapper(clusterquotamapping.ClusterQuotaMapper) admission.Validator }
WantsClusterQuotaMapper should be implemented by admission plugins that need to know how to map between cluster quota and namespaces
type WantsDefaultRegistryFunc ¶ added in v1.3.0
type WantsDefaultRegistryFunc interface { SetDefaultRegistryFunc(imageapi.DefaultRegistryFunc) admission.Validator }
WantsDefaultRegistryFunc should be implemented by admission plugins that need to know the default registry address.
type WantsGroupCache ¶ added in v1.4.0
type WantsGroupCache interface { SetGroupCache(*usercache.GroupCache) admission.Validator }
WantsGroupCache should be implemented by admission plugins that need a group cache.
type WantsInformers ¶ added in v1.3.0
type WantsInformers interface { SetInformers(shared.InformerFactory) admission.Validator }
WantsInformers should be implemented by admission plugins that will select its own informer
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 WantsOpenshiftClient ¶
WantsOpenshiftClient should be implemented by admission plugins that need an Openshift 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.