libs

package
v0.0.0-...-a4c1b39 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigMap

func CreateConfigMap(client *kubernetes.Clientset, namespace, name string, data map[string]string) error

func CreateKubeClient

func CreateKubeClient(kubeconfig string) (*kubernetes.Clientset, error)

func CreateNamespace

func CreateNamespace(clientset *kubernetes.Clientset, namespace string) error

func DeleteConfigMap

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

func DeleteNamespace

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

func GenerateRandomString

func GenerateRandomString(length int) string

Generate a random string of the given length

func GetConfigMap

func GetConfigMap(client *kubernetes.Clientset, namespace, name string) (*corev1.ConfigMap, error)

func GetPodLog

func GetPodLog(clientset *kubernetes.Clientset, namespace, podName, containerName string) (string, error)

func IsNamespaceExists

func IsNamespaceExists(clientset *kubernetes.Clientset, namespace string) (bool, error)

func RunTests

func RunTests(suites []string, parallelSuites, parallelTests int, kubeconfig string) error

func WaitForConfigMapDeletion

func WaitForConfigMapDeletion(client *kubernetes.Clientset, namespace, name string, timeout time.Duration) error

func WaitForDeploymentReady

func WaitForDeploymentReady(clientset *kubernetes.Clientset, namespace, deploymentName string, timeout time.Duration) error

func WaitForPodCondition

func WaitForPodCondition(client *kubernetes.Clientset, namespace, name string, conditionType corev1.PodConditionType, status corev1.ConditionStatus, timeout time.Duration) error

WaitForPodCondition waits for the specified condition type with the given status.

Types

type TestEvent

type TestEvent struct {
	Time    string `json:"Time"`
	Action  string `json:"Action"`
	Package string `json:"Package"`
	Test    string `json:"Test"`
	Output  string `json:"Output"`
}

Jump to

Keyboard shortcuts

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