k8sutil

package
v0.17.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 14 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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