validating

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerGetterMap contains admission webhook handlers
	HandlerGetterMap = map[string]types.HandlerGetter{
		"validate-namespace": func(mgr manager.Manager) admission.Handler {
			return &NamespaceHandler{
				Client:  mgr.GetClient(),
				Decoder: admission.NewDecoder(mgr.GetScheme()),
			}
		},
	}
)

Functions

This section is empty.

Types

type NamespaceHandler

type NamespaceHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

func (*NamespaceHandler) Handle

Handle handles admission requests.

Jump to

Keyboard shortcuts

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