test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeployment

func GetDeployment(namespace string, name string, c client.Client) (*appv1.Deployment, error)

func WaitForDeployment

func WaitForDeployment(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, replicas int, retryInterval, timeout time.Duration) error

WaitForDeployment checks to see if a given deployment has a certain number of available replicas after a specified amount of time If the deployment does not have the required number of replicas after 5 * retries seconds, the function returns an error This can be used in multiple ways, like verifying that a required resource is ready before trying to use it, or to test failure handling, like simulated in SimulatePodFail.

Types

This section is empty.

Jump to

Keyboard shortcuts

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