util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArePodsUp

func ArePodsUp(clientset *kubernetes.Clientset, namespace string, t *testing.T, clustername string)

func CreateNamespace

func CreateNamespace(client *kubernetes.Clientset, clusterID string, name string) (*v1.Namespace, error)

func CreateNodePort

func CreateNodePort(client *kubernetes.Clientset, clusterID, appName, name, namespace string) (*v1.Service, error)

func DeleteNamespace

func DeleteNamespace(client *kubernetes.Clientset, name string) error

func ExecCmd

func ExecCmd(config *rest.Config, client *kubernetes.Clientset, podName, namespace, command string) (string, string, error)

func GetNodes

func GetNodes(client *kubernetes.Clientset, clusterID string, labelSelector string) (*v1.NodeList, error)

func PodWatcher

func PodWatcher(location string, client *kubernetes.Clientset, clusterID, namespace, podName string, podReady, stopCh chan bool)

func WaitForPodToBeReady

func WaitForPodToBeReady(location string, client *kubernetes.Clientset, waitSeconds time.Duration, clusterID, namespace, podName string) bool

Types

type Tester

type Tester struct {
	Config1    *rest.Config
	Config2    *rest.Config
	Client1    *kubernetes.Clientset
	Client2    *kubernetes.Clientset
	ClusterID1 string
	ClusterID2 string
	Namespace  string
}

func GetTester

func GetTester() *Tester

Jump to

Keyboard shortcuts

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