util

package
v0.0.0-...-f10b042 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package util handles the utility functions during the tests.

Index

Constants

View Source
const (
	// RetryInterval is time for test to retry.
	RetryInterval = time.Second * 5
	// Timeout is time after which tests stops and fails.
	Timeout = time.Minute * 2
)

Variables

This section is empty.

Functions

func CreateKubernetesClient

func CreateKubernetesClient(t *testing.T) *kubernetes.Clientset

CreateKubernetesClient creates a Kubernetes client to talk to the API Server.

func WaitForNamespaceToBeDeleted

func WaitForNamespaceToBeDeleted(t *testing.T,
	client kubernetes.Interface, name string, retryInterval, timeout time.Duration)

WaitForNamespaceToBeDeleted waits for the namespace to the deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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