Skip to content

fix(ops): fail fast on completed Backup without backupMethod #10816

Description

@leon-ape

Problem

During horizontal scale-out from a Backup, a Backup may report status.phase: Completed while status.backupMethod is empty. That state cannot produce a valid prepare-data Restore.

The restore plan currently returns a non-terminal restore error before any Restore object exists, so the OpsRequest can keep retrying instead of reaching a terminal result.

Expected behavior

Fail fast before creating Restore/PVC resources and classify the invalid completed Backup as a fatal scale-out input so the OpsRequest can become Failed.

Scope

  • Preserve restore-plan ownership of detecting the incomplete Backup status.
  • Classify that plan failure as terminal at the Operations boundary.
  • Add focused coverage that no Restore is created.
  • Do not change restore environment propagation, cross-namespace authorization, snapshot behavior, or source-target selection.

Split from #10596.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions