crd

package
Version: v0.0.0-...-b42fc6e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 20 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 {

	// If enabled, resources without a validator will be ignored. Otherwise, they will fail.
	SkipMissing bool
	// contains filtered or unexported fields
}

Validator returns a new validator for custom resources Warning: this is meant for usage in tests only

func NewIstioValidator

func NewIstioValidator(t test.Failer) *Validator

func NewValidatorFromCRDs

func NewValidatorFromCRDs(crds ...apiextensions.CustomResourceDefinition) (*Validator, error)

func NewValidatorFromFiles

func NewValidatorFromFiles(files ...string) (*Validator, error)

func (*Validator) ValidateCustomResource

func (v *Validator) ValidateCustomResource(o runtime.Object) error

func (*Validator) ValidateCustomResourceYAML

func (v *Validator) ValidateCustomResourceYAML(data string) error

Source Files

Jump to

Keyboard shortcuts

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