istio: istio.io/istio/pkg/config/crd Index | Files

package crd

import "istio.io/istio/pkg/config/crd"

Index

Package Files

validator.go

type Validator Uses

type Validator struct {

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

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

func NewIstioValidator Uses

func NewIstioValidator(t test.Failer) *Validator

func NewValidatorFromCRDs Uses

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

func NewValidatorFromFiles Uses

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

func (*Validator) ValidateCustomResource Uses

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

func (*Validator) ValidateCustomResourceYAML Uses

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

Package crd imports 24 packages (graph). Updated 2021-01-09. Refresh now. Tools for package owners.