Documentation ¶
Index ¶
- func CheckForNamespace(namespaces v1.NamespaceList, targetNamespace string) bool
- func CheckForPod(pods v1.PodList, targetRegex string) bool
- func CheckPodsRunning(pods v1.PodList, expectedPods int) bool
- func GetClientSet() (cl *kube.Clientset, err error)
- func GetConfigPath() (kubeConfigPath string, err error)
- func HomeDir() (string, error)
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 ¶
CheckForPod returns true if pods is in Running state
func CheckPodsRunning ¶
CheckPodsRunning returns true if the number of pods is equal to expected pods and all pods are in running state
func GetClientSet ¶
GetClientSet returns the clientset for interacting the kubernetes cluster
func GetConfigPath ¶
GetConfigPath returns the path of kubeconfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.