k8sutil

package
v1.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(x, y interface{}, updateSetting config.UpdateSetting) (string, error)

Diff provides differences between two objects.

func GetObjectMetaData

func GetObjectMetaData(ctx context.Context, dynamicCli dynamic.Interface, mapper meta.RESTMapper, obj interface{}) (metaV1.ObjectMeta, error)

GetObjectMetaData returns metadata of the given object

func GetObjectTypeMetaData

func GetObjectTypeMetaData(obj interface{}) metaV1.TypeMeta

GetObjectTypeMetaData returns typemetadata of the given object

func GetResourceFromKind

func GetResourceFromKind(mapper meta.RESTMapper, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)

GetResourceFromKind returns resource name for given Kind

func TransformIntoTypedObject

func TransformIntoTypedObject(obj *unstructured.Unstructured, typedObject interface{}) error

TransformIntoTypedObject uses unstructured interface and creates a typed object

func TransformIntoUnstructured added in v1.4.0

func TransformIntoUnstructured(obj interface{}) (*unstructured.Unstructured, error)

TransformIntoUnstructured uses typed object and creates an unstructured interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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