vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.63k stars 1.39k forks source link

Adopting an orphan maintenance job after Velero server restarted #7753

Open qiuming-best opened 5 months ago

qiuming-best commented 5 months ago

Describe the problem/challenge you have

If we restarted the Velero server when there still having running maintenance job, the maintenance job would be orphan without tracking by the Velero server. the result of the maintenance job would not be recorded on backuprepositories CR.

Maybe we need to establish a relation between backuprepositories CR and maintenance job.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. If a Velero team member has requested log or more information, please provide the output of the shared commands.

reasonerjt commented 3 days ago

This should be do-able if we can query the maintenance jobs via label and re-populate the tracker in velero server when it starts.