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: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxScheduledFailedDuration = 300 * time.Second
)

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]admission.Handler{
		"validate-apps-kruise-io-v1alpha1-workloadspread": &WorkloadSpreadCreateUpdateHandler{},
	}
)

Functions

This section is empty.

Types

type WorkloadSpreadCreateUpdateHandler

type WorkloadSpreadCreateUpdateHandler 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
}

WorkloadSpreadCreateUpdateHandler handles WorkloadSpread

func (*WorkloadSpreadCreateUpdateHandler) Handle

Handle handles admission requests.

func (*WorkloadSpreadCreateUpdateHandler) InjectClient

InjectClient injects the client into the WorkloadSpreadCreateUpdateHandler

func (*WorkloadSpreadCreateUpdateHandler) InjectDecoder

InjectDecoder injects the decoder into the WorkloadSpreadCreateUpdateHandler

Jump to

Keyboard shortcuts

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