kubernetes

package
v1.11.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForNamespace

func CheckForNamespace(namespaces v1.NamespaceList, targetNamespace string) bool

CheckForNamespace returns true if target namespace exists in v1.NamespaceList

func CheckForPod

func CheckForPod(pods v1.PodList, targetRegex string) bool

CheckForPod returns true if pods is in Running state

func CheckPodsRunning

func CheckPodsRunning(pods v1.PodList, expectedPods int) bool

CheckPodsRunning returns true if the number of pods is equal to expected pods and all pods are in running state

func GetClientSet

func GetClientSet() (cl *kube.Clientset, err error)

GetClientSet returns the clientset for interacting the kubernetes cluster

func GetConfigPath

func GetConfigPath() (kubeConfigPath string, err error)

GetConfigPath returns the path of kubeconfig

func HomeDir

func HomeDir() (string, error)

HomeDir return the Home Directory of the environement

Types

This section is empty.

Jump to

Keyboard shortcuts

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