Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds a Webhook.
func NewGenericWebhookManagedBy ¶
NewGenericWebhookManagedBy returns a new webhook builder that will be started by the provided Manager.
type MutatingWebhook ¶
MutatingWebhook is a generic mutating admission webhook.
func (*MutatingWebhook) InjectClient ¶
func (v *MutatingWebhook) InjectClient(client client.Client) error
InjectClient implements the inject.Client interface.
func (*MutatingWebhook) InjectDecoder ¶
func (v *MutatingWebhook) InjectDecoder(decoder *admission.Decoder) error
InjectDecoder implements the admission.DecoderInjector interface.
type Mutator ¶
type Mutator interface { // Mutate yields a response to an mutating AdmissionRequest. Mutate(context.Context, admission.Request) admission.Response }
Mutator specifies the interface for a mutating webhook.
type ValidatingWebhook ¶
ValidatingWebhook is a generic validating admission webhook.
func (*ValidatingWebhook) InjectClient ¶
func (v *ValidatingWebhook) InjectClient(client client.Client) error
InjectClient implements the inject.Client interface.
func (*ValidatingWebhook) InjectDecoder ¶
func (v *ValidatingWebhook) InjectDecoder(decoder *admission.Decoder) error
InjectDecoder implements the admission.DecoderInjector interface.
Click to show internal directories.
Click to hide internal directories.