testhelper

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCRDFromFile

func GetCRDFromFile(path string) (*apiextensionsv1.CustomResourceDefinition, error)

GetCRDFromFile is a helper for tests to use the examples and validate them in unit tests

func GetKRMResource

func GetKRMResource(path string, obj runtime.Object, gvk schema.GroupVersionKind, addToScheme func(s *runtime.Scheme) error) error

func GetUnstructured

func GetUnstructured(path string, u *unstructured.Unstructured) error

func GetUnstructuredFromFile

func GetUnstructuredFromFile(path string) (*unstructured.Unstructured, error)

GetUnstructuredFromFile is a helper for tests to use the examples and validate them in unit tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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