code the final steps of the restore session

This commit is contained in:
jandre 2023-03-24 11:31:16 +01:00
parent b2d80d66ae
commit 9526cf404b

View File

@ -92,6 +92,10 @@ func (r *RestoreSessionReconciler) Reconcile(ctx context.Context, req ctrl.Reque
r.Log.V(0).Info("One of the target did not manage to Finalize but the backup is still a Success")
newSessionState = formolv1alpha1.Success
}
case formolv1alpha1.Success:
r.Log.V(0).Info("The restore was a success")
case formolv1alpha1.Failure:
r.Log.V(0).Info("The restore was a failure")
case "":
newSessionState = formolv1alpha1.New
restoreSession.Status.StartTime = &metav1.Time{Time: time.Now()}