Documentation ¶
Index ¶
- func WaitForDeletion(t *testing.T, dynclient client.Client, obj runtime.Object, ...) error
- func WaitForDeployment(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
- func WaitForOperatorDeployment(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForDeletion ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.