integration

package
v0.0.0-...-15868fb Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, dir, command string, args ...string)

Types

type NSKubernetesClient

type NSKubernetesClient struct {
	// contains filtered or unexported fields
}

NSKubernetesClient wraps a Kubernetes Client for a given namespace.

func SetupNamespace

func SetupNamespace(t *testing.T) (*v1.Namespace, *NSKubernetesClient, func())

SetupNamespace creates a Kubernetes namespace to run a test.

func (*NSKubernetesClient) GetDeployment

func (k *NSKubernetesClient) GetDeployment(depName string) *appsv1.Deployment

GetDeployment gets a deployment by name.

func (*NSKubernetesClient) WaitForDeploymentsToStabilize

func (k *NSKubernetesClient) WaitForDeploymentsToStabilize(depNames ...string)

WaitForDeploymentsToStabilize waits for a list of deployments to become stable.

func (*NSKubernetesClient) WaitForPodsReady

func (k *NSKubernetesClient) WaitForPodsReady(podNames ...string)

WaitForPodsReady waits for a list of pods to become ready.

Jump to

Keyboard shortcuts

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