mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 23:23:23 +09:00
Velero reports a Backup it rejects (missing storage location, bad spec) as phase FailedValidation. The BackupJob path only treated Failed and PartiallyFailed as terminal, so a rejected Backup fell into the "still in progress" branch: the BackupJob was requeued every few seconds and stayed Running with nothing to time it out. Treat FailedValidation as a failure for BackupJob, as the RestoreJob path already does. The failure message already carries Status.ValidationErrors, so the user sees why Velero refused it. The RestoreJob side already handled this; the added restore test pins that behavior and passes without the controller change. Report: https://github.com/cozystack/cozystack/issues/4446 Assisted-by: LLM Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>