Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerMap contains admission webhook handlers HandlerMap = map[string]admission.Handler{ "mutating-generic": NewGenericMutatingHandler(), "validating-generic": NewGenericValidatingHandler(), } )
View Source
var MutatingTypeHandlerMap = map[string]webhookdmission.DispatchHandler{}
View Source
var ValidatingTypeHandlerMap = map[string]webhookdmission.DispatchHandler{}
Functions ¶
This section is empty.
Types ¶
type MutatingHandler ¶
type MutatingHandler struct { *mixin.WebhookHandlerMixin // contains filtered or unexported fields }
MutatingHandler handles all resources mutating operation
func NewGenericMutatingHandler ¶
func NewGenericMutatingHandler() *MutatingHandler
func (*MutatingHandler) InjectFunc ¶
func (h *MutatingHandler) InjectFunc(f inject.Func) error
func (*MutatingHandler) InjectLogger ¶
func (h *MutatingHandler) InjectLogger(l logr.Logger) error
type ValidatingHandler ¶
type ValidatingHandler struct { *mixin.WebhookHandlerMixin // contains filtered or unexported fields }
ValidatingHandler validates all resources requests
func NewGenericValidatingHandler ¶
func NewGenericValidatingHandler() *ValidatingHandler
func (*ValidatingHandler) Handle ¶
func (h *ValidatingHandler) Handle(ctx context.Context, req admission.Request) (resp admission.Response)
Handle handles admission requests.
func (*ValidatingHandler) InjectFunc ¶
func (h *ValidatingHandler) InjectFunc(f inject.Func) error
func (*ValidatingHandler) InjectLogger ¶
func (h *ValidatingHandler) InjectLogger(l logr.Logger) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.