Documentation ¶
Index ¶
- Constants
- func CrdReady(status *apiextensionsv1.CustomResourceDefinitionStatus) bool
- func GenName(namePrefix string) string
- func NewTestingCR(name, group, version, kind string) *unstructured.Unstructured
- func NewTestingCRD(name, group string, versions []apiextensionsv1.CustomResourceDefinitionVersion) *apiextensionsv1.CustomResourceDefinition
Constants ¶
View Source
const ( DefaultCrdName = "samplecrd" DefaultCrName = "samplecr" DefaultGroup = "e2e.io" )
Variables ¶
This section is empty.
Functions ¶
func CrdReady ¶
func CrdReady(status *apiextensionsv1.CustomResourceDefinitionStatus) bool
CrdReady takes a CRD's status and determines if it is ready to accept new CRs
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 ¶
func NewTestingCRD(name, group string, versions []apiextensionsv1.CustomResourceDefinitionVersion) *apiextensionsv1.CustomResourceDefinition
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.
Click to show internal directories.
Click to hide internal directories.