Documentation
¶
Index ¶
- func NewTestMongoDB(name string) 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 WaitForStatefulSetToBeUpdated(t *testing.T, mdb *mdbv1.MongoDB, retryInterval, timeout time.Duration) error
- func WaitForStatefulSetToExist(stsName string, retryInterval, timeout time.Duration) (appsv1.StatefulSet, error)
- func WaitForStatefulSetToHaveUpdateStrategy(t *testing.T, mdb *mdbv1.MongoDB, ...) 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 WaitForStatefulSetToBeUpdated ¶ added in v0.0.6
func WaitForStatefulSetToBeUpdated(t *testing.T, mdb *mdbv1.MongoDB, retryInterval, timeout time.Duration) error
waitForStatefulSetToBeUpdated waits until all replicas of the StatefulSet with the given name are updated.
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
func WaitForStatefulSetToHaveUpdateStrategy ¶ added in v0.0.6
func WaitForStatefulSetToHaveUpdateStrategy(t *testing.T, mdb *mdbv1.MongoDB, strategy appsv1.StatefulSetUpdateStrategyType, retryInterval, timeout time.Duration) error
WaitForStatefulSetToHaveUpdateStrategy waits until all replicas of the StatefulSet with the given name have reached the ready status
Types ¶
This section is empty.