k8sclient

package
v1.0.13-test09 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToK8s

func ConnectToK8s() (*kubernetes.Clientset, error)

ConnectToK8s establishes a connection to the k8s and returns a *kubernetes.Clientset

func GetIngressAddress

func GetIngressAddress(clientSet *kubernetes.Clientset, ingressName string, namespace string) (string, error)

GetIngressAddress gets the hostname or ip address of the ingress with name.

func HasPodSucceeded added in v0.6.4

func HasPodSucceeded(c *kubernetes.Clientset, podName, namespace string) wait.ConditionFunc

HasPodSucceeded custom method for checing if Pod is succeded (handles PodFailed state too)

func IsPersistentVolumeClaimBound

func IsPersistentVolumeClaimBound(c *kubernetes.Clientset, podName, namespace string) wait.ConditionFunc

IsPersistentVolumeClaimBound TODO: add description.

func IsPodReady

func IsPodReady(c *kubernetes.Clientset, podName, namespace string) wait.ConditionFunc

IsPodReady check if the pod in question is running state

func IsPodRunning

func IsPodRunning(c *kubernetes.Clientset, podName, namespace string) wait.ConditionFunc

IsPodRunning check if the pod in question is running state

func WaitForPodsReady

func WaitForPodsReady(k8sClient *kubernetes.Clientset, namespace string, instance string, timeout time.Duration) error

WaitForPodsReady wait for pods to be running with a timeout, return error

Types

This section is empty.

Jump to

Keyboard shortcuts

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