Help us shape the future of Go! Take the 2026 Go Developer Survey

crdtest

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

Load applies the defaults and conversion used when the API server creates a CRD.

Types

type Validator

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

Validator evaluates transition rules from a generated CRD against typed resources.

func NewValidator

func NewValidator(t testing.TB, filename string) Validator

NewValidator loads the v1alpha1 schema, including shared schemas after conversion.

func (Validator) CheckUpdate

func (v Validator) CheckUpdate(t testing.TB, oldResource, newResource runtime.Object, wantError string)

CheckUpdate requires either acceptance or a rejection containing wantError.

Jump to

Keyboard shortcuts

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