In controllers/dataprotection/restore_controller.go, the post-ready reconcile path calls handleRestoreStageError with PrepareData when reconcileRestoreAction returns an error. This writes the failure condition to the wrong restore stage.
Expected behavior: post-ready action errors update the PostReady stage condition. Add a focused regression test that distinguishes the two stage condition types.
In controllers/dataprotection/restore_controller.go, the post-ready reconcile path calls handleRestoreStageError with PrepareData when reconcileRestoreAction returns an error. This writes the failure condition to the wrong restore stage.
Expected behavior: post-ready action errors update the PostReady stage condition. Add a focused regression test that distinguishes the two stage condition types.