Documentation ¶
Index ¶
- func RegisterMutatingHandler(mgr manager.Manager)
- func RegisterValidatingHandler(mgr manager.Manager, args controller.Args)
- type MutatingHandler
- type ValidatingHandler
- 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
- func (h *ValidatingHandler) ValidateCreate(ctx context.Context, app *v1beta1.Application) field.ErrorList
- func (h *ValidatingHandler) ValidateUpdate(ctx context.Context, newApp, oldApp *v1beta1.Application) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMutatingHandler ¶ added in v1.4.0
RegisterMutatingHandler will register component mutation handler to the webhook
func RegisterValidatingHandler ¶
func RegisterValidatingHandler(mgr manager.Manager, args controller.Args)
RegisterValidatingHandler will register application validate handler to the webhook
Types ¶
type MutatingHandler ¶ added in v1.4.0
type MutatingHandler struct { Decoder *admission.Decoder // contains filtered or unexported fields }
MutatingHandler adding user info to application annotations
func (*MutatingHandler) InjectDecoder ¶ added in v1.4.0
func (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder .
type ValidatingHandler ¶
type ValidatingHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder // contains filtered or unexported fields }
ValidatingHandler handles application
func (*ValidatingHandler) InjectClient ¶
func (h *ValidatingHandler) InjectClient(c client.Client) error
InjectClient injects the client into the ApplicationValidateHandler
func (*ValidatingHandler) InjectDecoder ¶
func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the ApplicationValidateHandler
func (*ValidatingHandler) ValidateCreate ¶ added in v0.3.1
func (h *ValidatingHandler) ValidateCreate(ctx context.Context, app *v1beta1.Application) field.ErrorList
ValidateCreate validates the Application on creation
func (*ValidatingHandler) ValidateUpdate ¶ added in v0.3.1
func (h *ValidatingHandler) ValidateUpdate(ctx context.Context, newApp, oldApp *v1beta1.Application) field.ErrorList
ValidateUpdate validates the Application on update
Click to show internal directories.
Click to hide internal directories.