webhook

package
v0.0.0-...-a81bd29 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidatedResults

func GetValidatedResults(kind string, decoder *admission.Decoder, req admission.Request, config config.Configuration) (*validator.Result, kube.GenericResource, error)

GetValidatedResults returns the validated results.

func NewMutateWebhook

func NewMutateWebhook(mgr manager.Manager, c config.Configuration)

NewMutateWebhook creates a mutating admission webhook for the apiType.

func NewValidateWebhook

func NewValidateWebhook(mgr manager.Manager, c config.Configuration)

NewValidateWebhook creates a validating admission webhook for the apiType.

Types

type Mutator

type Mutator struct {
	Client client.Client
	Config config.Configuration
	// contains filtered or unexported fields
}

Mutator mutate k8s resources.

func (*Mutator) Handle

Handle for Validator to run validation checks.

type Validator

type Validator struct {
	Client client.Client

	Config config.Configuration
	// contains filtered or unexported fields
}

Validator validates k8s resources.

func (*Validator) Handle

Handle for Validator to run validation checks.

Jump to

Keyboard shortcuts

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