Documentation
¶
Index ¶
- func NewTestMongoDB() mdbv1.MongoDB
- func RegisterTypesWithFramework(newTypes ...runtime.Object) error
- func UpdateMongoDBResource(original *mdbv1.MongoDB, updateFunc func(*mdbv1.MongoDB)) error
- func WaitForConfigMapToExist(cmName string, retryInterval, timeout time.Duration) (corev1.ConfigMap, error)
- func WaitForMongoDBToReachPhase(t *testing.T, mdb *mdbv1.MongoDB, phase mdbv1.Phase, ...) error
- func WaitForStatefulSetToBeReady(t *testing.T, mdb *mdbv1.MongoDB, retryInterval, timeout time.Duration) error
- func WaitForStatefulSetToExist(stsName string, retryInterval, timeout time.Duration) (appsv1.StatefulSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestMongoDB ¶
func UpdateMongoDBResource ¶
UpdateMongoDBResource applies the provided function to the most recent version of the MongoDB resource and retries when there are conflicts
func WaitForConfigMapToExist ¶
func WaitForConfigMapToExist(cmName string, retryInterval, timeout time.Duration) (corev1.ConfigMap, error)
WaitForConfigMapToExist waits until a ConfigMap of the given name exists using the provided retryInterval and timeout
func WaitForMongoDBToReachPhase ¶
func WaitForMongoDBToReachPhase(t *testing.T, mdb *mdbv1.MongoDB, phase mdbv1.Phase, retryInterval, timeout time.Duration) error
WaitForMongoDBToReachPhase waits until the given MongoDB resource reaches the expected phase
func WaitForStatefulSetToBeReady ¶
func WaitForStatefulSetToBeReady(t *testing.T, mdb *mdbv1.MongoDB, retryInterval, timeout time.Duration) error
WaitForStatefulSetToBeReady waits until all replicas of the StatefulSet with the given name have reached the ready status
func WaitForStatefulSetToExist ¶
func WaitForStatefulSetToExist(stsName string, retryInterval, timeout time.Duration) (appsv1.StatefulSet, error)
WaitForStatefulSetToExist waits until a StatefulSet of the given name exists using the provided retryInterval and timeout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.