validator

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is a name for a validation webhook.
	Name = "validator"
)

Variables

View Source
var DefaultAddOptions = AddOptions{}

DefaultAddOptions are the default options to apply when adding the webhook to the manager.

Functions

func New

New creates a new webhook that validates Shoot resources.

func NewShootValidator

func NewShootValidator() extensionswebhook.Validator

NewShootValidator returns a new instance of a shootValidator.

Types

type AddOptions

type AddOptions struct {
	MaxAllowedCIDRs int
}

AddOptions are options to apply when adding the webhook to the manager.

Jump to

Keyboard shortcuts

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