ceph: controller: retry after 10sec even if no cluster

Even if there is no CephCluster we still want to retry every 10sec as
one will likely show up soon.

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 a044b27650
commit b5e50481ff
1 file changed
+1 -1
@@ -56,7 +56,7 @@ func IsReadyToReconcile(client client.Client, clustercontext *clusterd.Context,
if kerrors.IsNotFound(err) {
cephClusterExists = false
logger.Errorf("CephCluster resource %q not found in namespace %q", namespacedName.Name, namespacedName.Namespace)
return cephv1.ClusterSpec{}, false, cephClusterExists, ImmediateRetryResult
return cephv1.ClusterSpec{}, false, cephClusterExists, WaitForRequeueIfCephClusterNotReady
} else if err != nil {
logger.Errorf("failed to fetch CephCluster %v", err)
return cephv1.ClusterSpec{}, false, cephClusterExists, ImmediateRetryResult