validating

package
v1.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]admission.Handler{
		"validate-service": &ServiceHandler{},
	}
)

Functions

This section is empty.

Types

type ServiceHandler

type ServiceHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

func (*ServiceHandler) Handle

Handle handles admission requests.

func (*ServiceHandler) InjectClient

func (h *ServiceHandler) InjectClient(c client.Client) error

func (*ServiceHandler) InjectDecoder

func (h *ServiceHandler) InjectDecoder(d *admission.Decoder) error

Jump to

Keyboard shortcuts

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