ceph: reconcile more often when cluster is not ready

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 <seb@redhat.com>
This commit is contained in:
Sébastien Han committed 2020-03-25 17:24:30 +01:00
1 parent a699512911
commit 7b544f04d4
1 file changed
+1 -1
@@ -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
}