validating

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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{
		"vcluster": &ClusterCreateUpdateHandler{},
	}
)

Functions

This section is empty.

Types

type ClusterCreateUpdateHandler

type ClusterCreateUpdateHandler struct {
	// To use the client, you need to do the following:
	// - uncomment it
	// - import sigs.k8s.io/controller-runtime/pkg/client
	// - uncomment the InjectClient method at the bottom of this file.
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

ClusterCreateUpdateHandler handles Cluster

func (*ClusterCreateUpdateHandler) Handle

Handle handles admission requests.

func (*ClusterCreateUpdateHandler) InjectClient

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

InjectClient injects the client into the ClusterCreateUpdateHandler

func (*ClusterCreateUpdateHandler) InjectDecoder

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

InjectDecoder injects the decoder into the ClusterCreateUpdateHandler

Jump to

Keyboard shortcuts

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