testutil

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCrdName = "samplecrd"
	DefaultCrName  = "samplecr"
	DefaultGroup   = "e2e.io"
)

Variables

This section is empty.

Functions

func CrdReady

CrdReady takes a CRD's status and determines if it is ready to accept new CRs

func GenName

func GenName(namePrefix string) string

func NewTestingCR

func NewTestingCR(name, group, version, kind string) *unstructured.Unstructured

NewTestingCR takes a name, group, version and king in order to create a new CR of a resource correctly.

func NewTestingCRD

NewTestingCRD takes a name, group and versions to be set for a new CRD. If name is set to "" then it will run testutil.GenName() on it with the DefaultCrdName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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