From 7b544f04d45ae4a04253c73c2f52f9ad56d792cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 23 Mar 2020 15:13:53 +0100 Subject: [PATCH] ceph: reconcile more often when cluster is not ready MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let's not apply the exponential backoff when waiting for the cluster to be ready, let's only apply it when there is no cluster. Closes: https://github.com/rook/rook/issues/5059 Signed-off-by: Sébastien Han --- pkg/operator/ceph/controller/controller_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/ceph/controller/controller_utils.go b/pkg/operator/ceph/controller/controller_utils.go index 1926fcfee..396a01823 100644 --- a/pkg/operator/ceph/controller/controller_utils.go +++ b/pkg/operator/ceph/controller/controller_utils.go @@ -84,5 +84,5 @@ func IsReadyToReconcile(client client.Client, clustercontext *clusterd.Context, } logger.Debugf("CephCluster resource %q found in namespace %q but not ready yet", namespacedName.Name, namespacedName.Namespace) - return cephCluster.Spec, false, cephClusterExists, ImmediateRetryResult + return cephCluster.Spec, false, cephClusterExists, WaitForRequeueIfCephClusterNotReady }