util

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreationTimestamp

func GetCreationTimestamp(object *unstructured.Unstructured) (time.Time, error)

func GetDeletionTimestamp

func GetDeletionTimestamp(object *unstructured.Unstructured) (time.Time, error)

func HasDataChanged

func HasDataChanged(oldObject, newObject *unstructured.Unstructured) bool

func HasStatusChanged

func HasStatusChanged(oldObject *unstructured.Unstructured, newObject *unstructured.Unstructured) bool

hasStatusChanged checks whether the status has changed from oldObject to newObject

func InterfaceToUnstructured

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

runtimeObjecttoUnstructured converts the runtime object to unstructured

func IsConfigMapOrSecret

func IsConfigMapOrSecret(object *unstructured.Unstructured) bool

func PruneData

func PruneData(object *unstructured.Unstructured)

func UnstructuredToPod

func UnstructuredToPod(unstr *unstructured.Unstructured) (*corev1.Pod, error)

UnstructuredToPod converts the unstructured content to Pod

Types

This section is empty.

Jump to

Keyboard shortcuts

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