validating

package
v1.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL