Documentation ¶
Index ¶
- func CreateConfigMap(client *kubernetes.Clientset, namespace, name string, data map[string]string) error
- func CreateKubeClient(kubeconfig string) (*kubernetes.Clientset, error)
- func CreateNamespace(clientset *kubernetes.Clientset, namespace string) error
- func DeleteConfigMap(client *kubernetes.Clientset, namespace, name string) error
- func DeleteNamespace(client *kubernetes.Clientset, namespace string) error
- func GenerateRandomString(length int) string
- func GetConfigMap(client *kubernetes.Clientset, namespace, name string) (*corev1.ConfigMap, error)
- func GetPodLog(clientset *kubernetes.Clientset, namespace, podName, containerName string) (string, error)
- func IsNamespaceExists(clientset *kubernetes.Clientset, namespace string) (bool, error)
- func RunTests(suites []string, parallelSuites, parallelTests int, kubeconfig string) error
- func WaitForConfigMapDeletion(client *kubernetes.Clientset, namespace, name string, timeout time.Duration) error
- func WaitForDeploymentReady(clientset *kubernetes.Clientset, namespace, deploymentName string, ...) error
- func WaitForPodCondition(client *kubernetes.Clientset, namespace, name string, ...) error
- type TestEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigMap ¶
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 ¶
Generate a random string of the given length
func GetConfigMap ¶
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 WaitForDeploymentReady ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.