Documentation ¶
Overview ¶
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
Index ¶
- func Register(plugins *admission.Plugins)
- type ErrCallingWebhook
- type GenericAdmissionWebhook
- func (a *GenericAdmissionWebhook) Admit(attr admission.Attributes) error
- func (a *GenericAdmissionWebhook) SetClientCert(cert, key []byte)
- func (a *GenericAdmissionWebhook) SetServiceResolver(sr admissioninit.ServiceResolver)
- func (a *GenericAdmissionWebhook) SetWebhookSource(ws admissioninit.WebhookSource)
- type RuleMatcher
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) SetClientCert ¶
func (a *GenericAdmissionWebhook) SetClientCert(cert, key []byte)
func (*GenericAdmissionWebhook) SetServiceResolver ¶
func (a *GenericAdmissionWebhook) SetServiceResolver(sr admissioninit.ServiceResolver)
func (*GenericAdmissionWebhook) SetWebhookSource ¶
func (a *GenericAdmissionWebhook) SetWebhookSource(ws admissioninit.WebhookSource)
type RuleMatcher ¶
type RuleMatcher struct { Rule admissionregistration.RuleWithOperations Attr admission.Attributes }
func (*RuleMatcher) Matches ¶
func (r *RuleMatcher) Matches() bool
Click to show internal directories.
Click to hide internal directories.