mutating

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandlerRegister = &common.HandlerRegister{
	Path: "/mutate-v1-pod",
	HandlerSetupFunc: func(mgr ctrl.Manager) (admission.Handler, error) {
		decoder, err := admission.NewDecoder(mgr.GetScheme())
		if err != nil {
			return nil, fmt.Errorf("failed to new admission decoder: %v", err)
		}
		return &Handler{
			Client:  mgr.GetClient(),
			Decoder: decoder,
		}, nil
	},
}

Functions

This section is empty.

Types

type Handler

type Handler struct {
	client.Client
	*admission.Decoder
}

func (*Handler) Handle

Jump to

Keyboard shortcuts

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