validation

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFieldList

func AppendFieldList(err error, list field.ErrorList) *multierror.Error

func ValidateRuleWithOperations

func ValidateRuleWithOperations(ruleWithOperations *admissionregistration.RuleWithOperations, fldPath *field.Path) field.ErrorList

func ValidateValidatingWebhook

func ValidateValidatingWebhook(hook *v1.ValidatingWebhook, fldPath *field.Path) error

ValidateValidatingWebhook checks a "webhook" section.

"failurePolicy" and "sideEffect" are validated by hook config schema.

"clientConfig" and "matchPolicy" are filled in WebhookResource, no need to check.

"rules", "timeoutSeconds", "namespaceSelector", "objectSelector" are from hook config.

func ValidateValidatingWebhookConfiguration

func ValidateValidatingWebhookConfiguration(e *v1.ValidatingWebhookConfiguration) error

ValidateValidatingWebhookConfiguration validates a webhook before creation.

func ValidateValidatingWebhooks

func ValidateValidatingWebhooks(e *v1.ValidatingWebhookConfiguration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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