operator: remove confusing successful message when reconciling CephObjectStoreUser
When creating a CephObjectStoreUser with a value spec.store that refers to an unexisting CephObjectStore, after the reconciliation loop the CephObjectStoreUser is in the ReconcileFailed state. However, a ReconcileSucceeded event is created with this message: "successfully configured CephObjectStoreUser" The success message results of the return value for the error which is currently `nil`. Let's replace it with the error message. Signed-off-by: Lucas Henry <polyedre@disroot.org>
This commit is contained in:
1 parent
e9bd40c347
commit
87bc3dfcdc
1 file changed
+1
-1
@@ -209,7 +209,7 @@ func (r *ReconcileObjectStoreUser) reconcile(request reconcile.Request) (reconci
|
||||
logger.Debugf("ObjectStore resource not ready in namespace %q, retrying in %q. %v",
|
||||
request.NamespacedName.Namespace, opcontroller.WaitForRequeueIfCephClusterNotReady.RequeueAfter.String(), err)
|
||||
r.updateStatus(k8sutil.ObservedGenerationNotAvailable, request.NamespacedName, k8sutil.ReconcileFailedStatus)
|
||||
return opcontroller.WaitForRequeueIfCephClusterNotReady, *cephObjectStoreUser, nil
|
||||
return opcontroller.WaitForRequeueIfCephClusterNotReady, *cephObjectStoreUser, err
|
||||
}
|
||||
|
||||
// Generate user config
|
||||
|
||||
Reference in new issue
Block a user