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 ¶
func New(mgr manager.Manager) (*extensionswebhook.Webhook, error)
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.
Click to show internal directories.
Click to hide internal directories.