util

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeDynamicClient added in v1.0.0

func NewFakeDynamicClient(objects ...runtime.Object) *dynamicfake.FakeDynamicClient

NewFakeDynamicClient is a convenience that returns a FakeDynamicClient with all the list objects we use during testing already registered

func ObjectFromPath

func ObjectFromPath(path string) *unstructured.Unstructured

ObjectFromPath returns a runtime.Object from the given path. Path is a relative path from source root

func ObjectFromYAML

func ObjectFromYAML(yamlStr string) *unstructured.Unstructured

ObjectFromYAML returns a runtime.Object from a yaml string

Types

This section is empty.

Jump to

Keyboard shortcuts

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