validating

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 13 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-configmap": NewConfigMapValidatingHandler(),
	}
)

Functions

func ShouldIgnoreIfNotConfigMap

func ShouldIgnoreIfNotConfigMap(req admission.Request) bool

Types

type ConfigMapValidatingHandler

type ConfigMapValidatingHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

func NewConfigMapValidatingHandler

func NewConfigMapValidatingHandler() *ConfigMapValidatingHandler

func (*ConfigMapValidatingHandler) Handle

Handle handles admission requests.

func (*ConfigMapValidatingHandler) InjectClient

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

InjectClient injects the client into the ValidatingHandler

func (*ConfigMapValidatingHandler) InjectDecoder

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

InjectDecoder injects the decoder into the ValidatingHandler

Jump to

Keyboard shortcuts

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