Documentation ¶
Index ¶
- Variables
- type ValidatingPSTSHandler
- func (h *ValidatingPSTSHandler) Handle(ctx context.Context, req admission.Request) admission.Response
- func (h *ValidatingPSTSHandler) InjectCRDClient(crdClient versioned.Interface) error
- func (h *ValidatingPSTSHandler) InjectCloudClient(bceClient cloud.Interface) error
- func (h *ValidatingPSTSHandler) InjectDecoder(d *admission.Decoder) error
- func (h *ValidatingPSTSHandler) InjectNetworkInformer(networkInformer crdinformers.SharedInformerFactory) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerMap contains admission webhook handlers HandlerMap = map[string]admission.Handler{ "validating-pod-subnet-topology-spread": &ValidatingPSTSHandler{}, } )
Functions ¶
This section is empty.
Types ¶
type ValidatingPSTSHandler ¶
type ValidatingPSTSHandler struct { // Decoder decodes objects Decoder *admission.Decoder // contains filtered or unexported fields }
func (*ValidatingPSTSHandler) Handle ¶
func (h *ValidatingPSTSHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests.
func (*ValidatingPSTSHandler) InjectCRDClient ¶
func (h *ValidatingPSTSHandler) InjectCRDClient(crdClient versioned.Interface) error
func (*ValidatingPSTSHandler) InjectCloudClient ¶
func (h *ValidatingPSTSHandler) InjectCloudClient(bceClient cloud.Interface) error
func (*ValidatingPSTSHandler) InjectDecoder ¶
func (h *ValidatingPSTSHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the PodCreateHandler
func (*ValidatingPSTSHandler) InjectNetworkInformer ¶
func (h *ValidatingPSTSHandler) InjectNetworkInformer(networkInformer crdinformers.SharedInformerFactory) error
Click to show internal directories.
Click to hide internal directories.