Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginInitializer ¶ added in v1.7.0
type PluginInitializer struct {
// contains filtered or unexported fields
}
func NewPluginInitializer ¶
func NewPluginInitializer( internalClient internalclientset.Interface, sharedInformers informers.SharedInformerFactory, cloudConfig []byte, restMapper meta.RESTMapper, quotaConfiguration quota.Configuration, authenticationInfoResolverWrapper webhook.AuthenticationInfoResolverWrapper, serviceResolver webhook.ServiceResolver, ) *PluginInitializer
NewPluginInitializer constructs new instance of PluginInitializer TODO: switch these parameters to use the builder pattern or just make them all public, this construction method is pointless boilerplate.
func (*PluginInitializer) Initialize ¶ added in v1.7.0
func (i *PluginInitializer) Initialize(plugin admission.Interface)
Initialize checks the initialization interfaces implemented by each plugin and provide the appropriate initialization data
type ServiceResolver ¶ added in v1.7.0
ServiceResolver knows how to convert a service reference into an actual location.
type WantsAuthenticationInfoResolverWrapper ¶
type WantsAuthenticationInfoResolverWrapper interface { SetAuthenticationInfoResolverWrapper(webhook.AuthenticationInfoResolverWrapper) admission.Validator }
WantsAuthenticationInfoResolverWrapper defines a function that wraps the standard AuthenticationInfoResolver to allow the apiserver to control what is returned as auth info
type WantsCloudConfig ¶
type WantsCloudConfig interface {
SetCloudConfig([]byte)
}
WantsCloudConfig defines a function which sets CloudConfig for admission plugins that need it.
type WantsInternalKubeClientSet ¶
type WantsInternalKubeClientSet interface { SetInternalKubeClientSet(internalclientset.Interface) admission.Validator }
WantsInternalKubeClientSet defines a function which sets ClientSet for admission plugins that need it
type WantsInternalKubeInformerFactory ¶
type WantsInternalKubeInformerFactory interface { SetInternalKubeInformerFactory(informers.SharedInformerFactory) admission.Validator }
WantsInternalKubeInformerFactory defines a function which sets InformerFactory for admission plugins that need it
type WantsQuotaConfiguration ¶ added in v1.9.0
type WantsQuotaConfiguration interface { SetQuotaConfiguration(quota.Configuration) admission.Validator }
WantsQuotaConfiguration defines a function which sets quota configuration for admission plugins that need it.
type WantsRESTMapper ¶ added in v1.7.0
type WantsRESTMapper interface {
SetRESTMapper(meta.RESTMapper)
}
WantsRESTMapper defines a function which sets RESTMapper for admission plugins that need it.
type WantsServiceResolver ¶ added in v1.7.0
type WantsServiceResolver interface {
SetServiceResolver(webhook.ServiceResolver)
}
WantsServiceResolver defines a fuction that accepts a ServiceResolver for admission plugins that need to make calls to services.