e2eutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: Apache-2.0 Imports: 7 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.

func WaitForOperatorDeployment added in v0.2.0

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

WaitForOperatorDeployment has the same functionality as WaitForDeployment but will no wait for the deployment if the test was run with a locally run operator (--up-local flag)

Types

This section is empty.

Jump to

Keyboard shortcuts

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