k8sutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToSDKScheme

func AddToSDKScheme(addToScheme addToSchemeFunc)

AddToSDKScheme allows CRDs to register their types with the sdk scheme

func GetNameAndNamespace added in v0.0.2

func GetNameAndNamespace(object runtime.Object) (string, string, error)

GetNameAndNamespace extracts the name and namespace from the given runtime.Object and returns a error if any of those is missing.

func ObjectInfo added in v0.0.2

func ObjectInfo(kind, name, namespace string) string

func RuntimeObjectFromUnstructured

func RuntimeObjectFromUnstructured(u *unstructured.Unstructured) runtime.Object

RuntimeObjectFromUnstructured converts an unstructured to a runtime object

func RuntimeObjectIntoRuntimeObject added in v0.0.2

func RuntimeObjectIntoRuntimeObject(from runtime.Object, into runtime.Object) error

RuntimeObjectIntoRuntimeObject unmarshalls an runtime.Object into a given runtime object

func UnstructuredFromRuntimeObject

func UnstructuredFromRuntimeObject(ro runtime.Object) *unstructured.Unstructured

UnstructuredFromRuntimeObject converts a runtime object to an unstructured

func UnstructuredIntoRuntimeObject added in v0.0.2

func UnstructuredIntoRuntimeObject(u *unstructured.Unstructured, into runtime.Object) error

UnstructuredIntoRuntimeObject unmarshalls an unstructured into a given runtime object TODO: https://github.com/coreos/operator-sdk/issues/127

Types

This section is empty.

Jump to

Keyboard shortcuts

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