validation

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateJsPolicy

func ValidateJsPolicy(e *policyv1beta1.JsPolicy) field.ErrorList

ValidateJsPolicy validates a webhook before creation.

func ValidateJsPolicyUpdate

func ValidateJsPolicyUpdate(newC, oldC *policyv1beta1.JsPolicy) field.ErrorList

ValidateJsPolicyUpdate validates update of validating webhook configuration

func ValidateLabelName

func ValidateLabelName(labelName string, fldPath *field.Path) field.ErrorList

ValidateLabelName validates that the label name is correctly defined.

func ValidateLabelSelector

func ValidateLabelSelector(ps *metav1.LabelSelector, fldPath *field.Path) field.ErrorList

func ValidateLabelSelectorRequirement

func ValidateLabelSelectorRequirement(sr metav1.LabelSelectorRequirement, fldPath *field.Path) field.ErrorList

func ValidateLabels

func ValidateLabels(labels map[string]string, fldPath *field.Path) field.ErrorList

ValidateLabels validates that a set of labels are correctly defined.

Types

type Validator

type Validator struct {
	Log           logr.Logger
	StrictDecoder encoding.Decoder
	NormalDecoder encoding.Decoder
}

func (*Validator) Handle

Jump to

Keyboard shortcuts

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