Versions in this module Expand all Collapse all v0 v0.0.310 Jun 15, 2022 Changes in this version + func RegisterDefaulter(name string, d *DefaulterWrap) + func RegisterValidator(name string, v *ValidatorWrap) + func UnRegisterDefaulter(name string) + func UnRegisterValidator(name string) + type Defaulter interface + Default func(obj runtime.Object) error + type DefaulterWrap struct + Helper Defaulter + Obj runtime.Object + func GetDefaulter(name string) *DefaulterWrap + type MutatingHandler struct + C client.Client + func (h *MutatingHandler) Handle(ctx context.Context, req admission.Request) admission.Response + func (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error + type ValidatingHandler struct + C client.Client + func (h *ValidatingHandler) Handle(ctx context.Context, req admission.Request) admission.Response + func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error + type Validator interface + ValidateCreate func(obj runtime.Object) error + ValidateDelete func(obj runtime.Object) error + ValidateUpdate func(old runtime.Object, new runtime.Object) error + type ValidatorWrap struct + Helper Validator + Obj runtime.Object + func GetValidator(name string) *ValidatorWrap