validation

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator validates the Kubernetes resources against their OpenAPI specification. It runs spec, metadata and CEL validations.

func NewValidator

func NewValidator() *Validator

NewValidator creates a new Validator.

func (*Validator) Register

Register registers a CRD to be validated later on.

func (*Validator) Validate

Validate validates the given object and report potential issues. Unknown objects are skipped without returning any error.

Jump to

Keyboard shortcuts

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