kube_testing

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreAnnotation

func IgnoreAnnotation(annotation string) cmp.Option

IgnoreAnnotation allows to ignore a specific annotation when comparing Kubernetes objects.

func ObjsToYAML

func ObjsToYAML(t *testing.T, objs ...runtime.Object) []byte

func ToUnstructured

func ToUnstructured(t *testing.T, obj runtime.Object) *unstructured.Unstructured

func TransformToUnstructured

func TransformToUnstructured() cmp.Option

TransformToUnstructured transforms runtime.Object instances into unstructured.Unstructured to facilitate comparisons. This makes it possible to compare a typed object with its unstructured representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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