Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerMap contains admission webhook handlers HandlerMap = map[string]admission.Handler{ "validate-policy-kruise-io-podunavailablebudget": &PodUnavailableBudgetCreateUpdateHandler{}, } )
Functions ¶
This section is empty.
Types ¶
type PodUnavailableBudgetCreateUpdateHandler ¶
type PodUnavailableBudgetCreateUpdateHandler struct { // - uncomment it // - import sigs.k8s.io/controller-runtime/pkg/client // - uncomment the InjectClient method at the bottom of this file. Client client.Client Decoder *admission.Decoder }
PodUnavailableBudgetCreateUpdateHandler handles PodUnavailableBudget
func (*PodUnavailableBudgetCreateUpdateHandler) Handle ¶
func (h *PodUnavailableBudgetCreateUpdateHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests.
func (*PodUnavailableBudgetCreateUpdateHandler) InjectClient ¶
func (h *PodUnavailableBudgetCreateUpdateHandler) InjectClient(c client.Client) error
InjectClient injects the client into the PodUnavailableBudgetCreateUpdateHandler
func (*PodUnavailableBudgetCreateUpdateHandler) InjectDecoder ¶
func (h *PodUnavailableBudgetCreateUpdateHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the PodUnavailableBudgetCreateUpdateHandler
Click to show internal directories.
Click to hide internal directories.