util

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetryInterval        = time.Second * 5
	Timeout              = time.Second * 60
	CleanupRetryInterval = time.Second * 1
	CleanupTimeout       = time.Second * 5
)

Time constants.

Variables

This section is empty.

Functions

func ClusterStatusCheck

func ClusterStatusCheck(t *testing.T, status storageos.StorageOSClusterStatus, nodes int)

ClusterStatusCheck checks the values of cluster status based on a given number of nodes.

func DeployCluster

func DeployCluster(t *testing.T, ctx *framework.TestCtx, cluster *storageos.StorageOSCluster) error

DeployCluster creates a custom resource and checks if the storageos daemonset is deployed successfully.

func NewStorageOSCluster

func NewStorageOSCluster(namespace string, clusterSpec storageos.StorageOSClusterSpec) *storageos.StorageOSCluster

NewStorageOSCluster returns a StorageOSCluster object, created using a given cluster spec.

func SetupOperator

func SetupOperator(t *testing.T, ctx *framework.TestCtx)

SetupOperator installs the operator and ensures that the deployment is successful.

func WaitForDaemonSet added in v0.0.8

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

WaitForDaemonSet checks and waits for a given daemonset to be in ready.

func WaitForStatefulSet added in v0.0.8

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

WaitForStatefulSet checks and waits for a given statefulset to be in ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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