webhooks

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterValidator

type ClusterValidator struct {
	// contains filtered or unexported fields
}

ClusterValidator validates cluster CRs of the cluster registry.

func NewClusterValidator

func NewClusterValidator(logger logr.Logger, manager ctrl.Manager) *ClusterValidator

NewClusterValidator instantiates a cluster CR validator set to work on the specified Kubernetes API server.

func (*ClusterValidator) Handle

func (validator *ClusterValidator) Handle(ctx context.Context, request admission.Request) admission.Response

Handle handles the validator's admission requests and determines whether the specified request can be allowed.

func (*ClusterValidator) InjectDecoder

func (validator *ClusterValidator) InjectDecoder(decoder *admission.Decoder) error

InjectDecoder sets the cluster CR decoder object.

Jump to

Keyboard shortcuts

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