Documentation ¶
Index ¶
- func RegisterValidatingHandler(mgr manager.Manager, args controller.Args)
- type ValidatingHandler
- func (h *ValidatingHandler) CheckInitDependedOn(ctx context.Context, obj *v1beta1.Initializer) (bool, string, error)
- func (h *ValidatingHandler) Handle(ctx context.Context, req admission.Request) admission.Response
- func (h *ValidatingHandler) InjectClient(c client.Client) error
- func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterValidatingHandler ¶
func RegisterValidatingHandler(mgr manager.Manager, args controller.Args)
RegisterValidatingHandler will register initializer validation to webhook
Types ¶
type ValidatingHandler ¶
type ValidatingHandler struct { Client client.Client // Decoder decodes object Decoder *admission.Decoder }
ValidatingHandler handles validation of initializer
func (*ValidatingHandler) CheckInitDependedOn ¶
func (h *ValidatingHandler) CheckInitDependedOn(ctx context.Context, obj *v1beta1.Initializer) (bool, string, error)
CheckInitDependedOn check if there are other initializers depending on this init
func (*ValidatingHandler) InjectClient ¶
func (h *ValidatingHandler) InjectClient(c client.Client) error
InjectClient injects the client into the InitializerValidateHandler
func (*ValidatingHandler) InjectDecoder ¶
func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the ValidatingHandler
Click to show internal directories.
Click to hide internal directories.