Documentation ¶
Overview ¶
Package webhook delegates admission checks to dynamically configured webhooks.
Package webhook delegates admission checks to dynamically configured webhooks.
Package webhook checks a webhook for configured operation admission ¶
Package webhook checks a webhook for configured operation admission ¶
Package webhook checks a webhook for configured operation admission
Index ¶
- func Register(plugins *admission.Plugins)
- type ErrCallingWebhook
- type GenericAdmissionWebhook
- func (a *GenericAdmissionWebhook) Admit(attr admission.Attributes) error
- func (a *GenericAdmissionWebhook) SetExternalKubeClientSet(client clientset.Interface)
- func (a *GenericAdmissionWebhook) SetScheme(scheme *runtime.Scheme)
- func (a *GenericAdmissionWebhook) SetServiceResolver(sr admissioninit.ServiceResolver)
- func (a *GenericAdmissionWebhook) SetWebhookRESTClientConfig(in *rest.Config)
- func (a *GenericAdmissionWebhook) Validate() error
- type RuleMatcher
- type WebhookSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrCallingWebhook ¶
func (*ErrCallingWebhook) Error ¶
func (e *ErrCallingWebhook) Error() string
type GenericAdmissionWebhook ¶
type GenericAdmissionWebhook struct { *admission.Handler // contains filtered or unexported fields }
GenericAdmissionWebhook is an implementation of admission.Interface.
func NewGenericAdmissionWebhook ¶
func NewGenericAdmissionWebhook() (*GenericAdmissionWebhook, error)
NewGenericAdmissionWebhook returns a generic admission webhook plugin.
func (*GenericAdmissionWebhook) Admit ¶
func (a *GenericAdmissionWebhook) Admit(attr admission.Attributes) error
Admit makes an admission decision based on the request attributes.
func (*GenericAdmissionWebhook) SetExternalKubeClientSet ¶
func (a *GenericAdmissionWebhook) SetExternalKubeClientSet(client clientset.Interface)
func (*GenericAdmissionWebhook) SetScheme ¶
func (a *GenericAdmissionWebhook) SetScheme(scheme *runtime.Scheme)
SetScheme sets a serializer(NegotiatedSerializer) which is derived from the scheme
func (*GenericAdmissionWebhook) SetServiceResolver ¶
func (a *GenericAdmissionWebhook) SetServiceResolver(sr admissioninit.ServiceResolver)
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.
func (*GenericAdmissionWebhook) SetWebhookRESTClientConfig ¶
func (a *GenericAdmissionWebhook) SetWebhookRESTClientConfig(in *rest.Config)
func (*GenericAdmissionWebhook) Validate ¶
func (a *GenericAdmissionWebhook) Validate() error
type RuleMatcher ¶
type RuleMatcher struct { Rule v1alpha1.RuleWithOperations Attr admission.Attributes }
func (*RuleMatcher) Matches ¶
func (r *RuleMatcher) Matches() bool
type WebhookSource ¶
type WebhookSource interface { Run(stopCh <-chan struct{}) ExternalAdmissionHooks() (*v1alpha1.ExternalAdmissionHookConfiguration, error) }
WebhookSource can list dynamic webhook plugins.