mariadb-operator reports a failed backing Job as Complete=True with
reason JobFailed, and Complete=True alone was read as success. A
backup whose dump or upload failed therefore ended Succeeded and left
a Ready Backup pointing at an archive that does not exist, and a
scheduled Plan kept producing such Backups; a failed restore ended
Succeeded too.
Success now requires reason JobComplete, and JobFailed fails the job
whatever the status.
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
Assisted-by: LLM
(cherry picked from commit ccac0e17e9)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>