Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginInitializer ¶
type PluginInitializer struct { ProjectCache *cache.ProjectCache OriginQuotaRegistry quota.Registry JenkinsPipelineConfig configapi.JenkinsPipelineConfig RESTClientConfig restclient.Config ClusterResourceQuotaInformer quotainformer.ClusterResourceQuotaInformer ClusterQuotaMapper clusterquotamapping.ClusterQuotaMapper RegistryHostnameRetriever registryhostname.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 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 WantsDefaultRegistryFunc ¶ added in v1.3.0
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 WantsJenkinsPipelineConfig ¶ added in v1.3.0
type WantsJenkinsPipelineConfig interface { SetJenkinsPipelineConfig(jenkinsConfig configapi.JenkinsPipelineConfig) admission.InitializationValidator }
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 WantsOriginQuotaRegistry ¶ added in v1.3.0
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 ¶ added in v1.3.0
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(securityinformer.SharedInformerFactory) admission.InitializationValidator }
type WantsUserInformer ¶
type WantsUserInformer interface { SetUserInformer(userinformer.SharedInformerFactory) admission.InitializationValidator }