Help us shape the future of Go! Take the 2026 Go Developer Survey

handlers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrdValidator

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

CrdValidator houses a client, decoder and Handle function for ensuring that a CRD create/update request is safe

func NewCrdValidator

func NewCrdValidator(log logr.Logger, client client.Client) CrdValidator

func (*CrdValidator) Handle

Handle takes an incoming CRD create/update request and confirms that it is a safe upgrade based on the crd.Validate() function call

func (*CrdValidator) InjectDecoder

func (cv *CrdValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects a decoder for the CrdValidator.

Jump to

Keyboard shortcuts

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