Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerMap contains admission webhook handlers HandlerMap = map[string]admission.Handler{ "validate-apps-kruise-io-v1alpha1-cloneset": &CloneSetCreateUpdateHandler{}, } )
Functions ¶
This section is empty.
Types ¶
type CloneSetCreateUpdateHandler ¶
type CloneSetCreateUpdateHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder }
CloneSetCreateUpdateHandler handles CloneSet
func (*CloneSetCreateUpdateHandler) Handle ¶
func (h *CloneSetCreateUpdateHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests.
func (*CloneSetCreateUpdateHandler) InjectClient ¶
func (h *CloneSetCreateUpdateHandler) InjectClient(c client.Client) error
InjectClient injects the client into the CloneSetCreateUpdateHandler
func (*CloneSetCreateUpdateHandler) InjectDecoder ¶
func (h *CloneSetCreateUpdateHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the CloneSetCreateUpdateHandler
Click to show internal directories.
Click to hide internal directories.