util

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterIP added in v0.4.4

func GetClusterIP(unstr *unstructured.Unstructured) string

func GetCreationTimestamp

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

func GetDeletionTimestamp

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

func GetLabelSelector added in v0.4.4

func GetLabelSelector(unstr *unstructured.Unstructured) (*metav1.LabelSelector, 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 IsHelmSecret added in v0.5.2

func IsHelmSecret(object *unstructured.Unstructured) bool

func IsSecret added in v0.5.4

func IsSecret(object *unstructured.Unstructured) bool

func PruneSecret added in v0.5.4

func PruneSecret(object *unstructured.Unstructured)

func RedactEnvVar added in v0.4.5

func RedactEnvVar(object *unstructured.Unstructured)

func UnstructuredToPod

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

UnstructuredToPod converts the unstructured content to Pod

func UnstructuredToService added in v0.4.4

func UnstructuredToService(unstr *unstructured.Unstructured) (*corev1.Service, error)

UnstructuredToService converts the unstructured content to Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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