Package mutating delegates admission checks to dynamically configured mutating webhooks.
Package mutating makes calls to mutating webhooks during the admission process.
- func Register(plugins *admission.Plugins)
- type MutatingWebhook
- func (a *MutatingWebhook) Admit(attr admission.Attributes) error
- func (a *MutatingWebhook) SetAuthenticationInfoResolverWrapper(wrapper config.AuthenticationInfoResolverWrapper)
- func (a *MutatingWebhook) SetExternalKubeClientSet(client clientset.Interface)
- func (a *MutatingWebhook) SetExternalKubeInformerFactory(f informers.SharedInformerFactory)
- func (a *MutatingWebhook) SetScheme(scheme *runtime.Scheme)
- func (a *MutatingWebhook) SetServiceResolver(sr config.ServiceResolver)
- func (a *MutatingWebhook) ValidateInitialization() error
- type WebhookSource
const ( // Name of admission plug-in PluginName = "MutatingAdmissionWebhook" )
This section is empty.
type MutatingWebhook ¶
MutatingWebhook is an implementation of admission.Interface.
func NewMutatingWebhook ¶
NewMutatingWebhook returns a generic admission webhook plugin.
Admit makes an admission decision based on the request attributes.
func (*MutatingWebhook) SetAuthenticationInfoResolverWrapper ¶
func (a *MutatingWebhook) SetAuthenticationInfoResolverWrapper(wrapper config.AuthenticationInfoResolverWrapper)
TODO find a better way wire this, but keep this pull small for now.
func (*MutatingWebhook) SetExternalKubeClientSet ¶
WantsExternalKubeClientSet defines a function which sets external ClientSet for admission plugins that need it
func (*MutatingWebhook) SetExternalKubeInformerFactory ¶
SetExternalKubeInformerFactory implements the WantsExternalKubeInformerFactory interface.
SetScheme sets a serializer(NegotiatedSerializer) which is derived from the scheme
func (*MutatingWebhook) SetServiceResolver ¶
SetServiceResolver sets a service resolver for the webhook admission plugin. Passing a nil resolver does not have an effect, instead a default one will be used.