Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeout when creating the MariaDB database
Browse files Browse the repository at this point in the history
Replace WaitForDBCreate by WaitForDBCreatedWithTimeout and pass the
timeout from the RequeueTimeout reconciler parameter.
amoralej committed Nov 25, 2024
1 parent baaae61 commit f57ab24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/watcher_controller.go
Original file line number Diff line number Diff line change
@@ -266,7 +266,7 @@ func (r *WatcherReconciler) ensureDB(
return db, ctrlResult, nil
}
// wait for the DB to be setup
ctrlResult, err = db.WaitForDBCreated(ctx, h)
ctrlResult, err = db.WaitForDBCreatedWithTimeout(ctx, h, r.RequeueTimeout)
if err != nil {
instance.Status.Conditions.Set(condition.FalseCondition(
condition.DBReadyCondition,

0 comments on commit f57ab24

Please sign in to comment.