Documentation
¶
Index ¶
- Constants
- func ClusterStatusCheck(t *testing.T, status storageos.StorageOSClusterStatus, nodes int)
- func DeployCluster(t *testing.T, ctx *framework.TestCtx, cluster *storageos.StorageOSCluster) error
- func NewStorageOSCluster(namespace string, clusterSpec storageos.StorageOSClusterSpec) *storageos.StorageOSCluster
- func SetupOperator(t *testing.T, ctx *framework.TestCtx)
- func WaitForDaemonSet(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
- func WaitForStatefulSet(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, ...) error
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.