Documentation
¶
Index ¶
- func Validate(plugins []admission.Interface) error
- type PluginInitializer
- type WantsAuthorizer
- type WantsClusterQuota
- type WantsDefaultRegistryFunc
- type WantsInternalKubernetesInformers
- type WantsJenkinsPipelineConfig
- type WantsOpenshiftInternalAuthorizationClient
- type WantsOpenshiftInternalBuildClient
- type WantsOpenshiftInternalImageClient
- type WantsOpenshiftInternalQuotaClient
- type WantsOpenshiftInternalTemplateClient
- type WantsOpenshiftInternalUserClient
- type WantsOriginQuotaRegistry
- type WantsProjectCache
- type WantsRESTClientConfig
- type WantsSecurityInformer
- type WantsUserInformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginInitializer ¶
type PluginInitializer struct { OpenshiftInternalAuthorizationClient authorizationclient.Interface OpenshiftInternalBuildClient buildclient.Interface OpenshiftInternalImageClient imageclient.Interface OpenshiftInternalQuotaClient quotaclient.Interface OpenshiftInternalTemplateClient templateclient.Interface OpenshiftInternalUserClient userclient.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 ¶
type WantsAuthorizer interface { SetAuthorizer(kauthorizer.Authorizer) admission.Validator }
WantsAuthorizer should be implemented by admission plugins that need access to the Authorizer interface
type WantsClusterQuota ¶
type WantsClusterQuota interface { SetClusterQuota(clusterquotamapping.ClusterQuotaMapper, quotainformer.ClusterResourceQuotaInformer) admission.Validator }
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 ¶
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 WantsInternalKubernetesInformers ¶
type WantsInternalKubernetesInformers interface { SetInternalKubernetesInformers(kinternalinformers.SharedInformerFactory) admission.Validator }
WantsInternalKubernetesInformers should be implemented by admission plugins that need the internal kubernetes informers.
type WantsJenkinsPipelineConfig ¶
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 WantsOpenshiftInternalAuthorizationClient ¶ added in v3.7.0
type WantsOpenshiftInternalAuthorizationClient interface { SetOpenshiftInternalAuthorizationClient(authorizationclient.Interface) admission.Validator }
type WantsOpenshiftInternalBuildClient ¶ added in v3.7.0
type WantsOpenshiftInternalBuildClient interface { SetOpenshiftInternalBuildClient(buildclient.Interface) admission.Validator }
type WantsOpenshiftInternalImageClient ¶ added in v3.7.0
type WantsOpenshiftInternalImageClient interface { SetOpenshiftInternalImageClient(imageclient.Interface) admission.Validator }
WantsOpenshiftInternalImageClient should be implemented by admission plugins that need an Openshift internal image client
type WantsOpenshiftInternalQuotaClient ¶ added in v3.7.0
type WantsOpenshiftInternalQuotaClient interface { SetOpenshiftInternalQuotaClient(quotaclient.Interface) admission.Validator }
WantsOpenshiftInternalQuotaClient should be implemented by admission plugins that need an Openshift internal quota client
type WantsOpenshiftInternalTemplateClient ¶ added in v3.7.0
type WantsOpenshiftInternalTemplateClient interface { SetOpenshiftInternalTemplateClient(templateclient.Interface) admission.Validator }
WantsOpenshiftInternalTemplateClient should be implemented by admission plugins that need an Openshift internal template client
type WantsOpenshiftInternalUserClient ¶ added in v3.7.0
type WantsOpenshiftInternalUserClient interface { SetOpenshiftInternalUserClient(userclient.Interface) admission.Validator }
WantsOpenshiftInternalUserClient should be implemented by admission plugins that need an Openshift internal user client
type WantsOriginQuotaRegistry ¶
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 ¶
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 ¶ added in v3.7.0
type WantsUserInformer interface { SetUserInformer(userinformer.SharedInformerFactory) admission.Validator }