e2eutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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