k8sutils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespaceAndNameFromObjectMeta

func GetNamespaceAndNameFromObjectMeta(obj interface{}) (namespace, name string, errs error)

func GetObjectMetaData

func GetObjectMetaData(obj interface{}) *metadataOnlyObject

func GetOrGenKubeConfigPath

func GetOrGenKubeConfigPath(kubeconfigContent string) string

gen or get kubeconfig from local path by kubeconfig content we would gen or get kubeconfig file named by hash

func ValidateDNS1123Name

func ValidateDNS1123Name(name string) bool

func WaitPod

func WaitPod(client *kubernetes.Clientset, namespace string, listOptions v1.ListOptions,
	checker func(*corev1.Pod) bool, timeout time.Duration) error

func WaitResource

func WaitResource(client *kubernetes.Clientset, g cache.Getter, namespace string, gvk schema.GroupVersionKind,
	listOptions v1.ListOptions, checker func(interface{}) bool, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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