fix(backup): 手动备份按服冷却、每服保留上限与独立保留期,容量驱逐不再删除回收世界的唯一副本

This commit is contained in:
Lemon-miaow committed 2026-09-24 19:58:59 +08:00
1 parent f69cdec9d4
commit 9bda3a52fa
30 files changed
+801 -42

No files matched your search

+4
View File
@@ -138,6 +138,10 @@ func RestoreJob(p JobParams) (*batchv1.Job, error) {
},
}
// The exit error reaches GET /servers/{name}/jobs through the terminated
// state (api.K8sJobStatus), in place of the Job's generic backoff text.
container.TerminationMessagePolicy = corev1.TerminationMessageFallbackToLogsOnError
job := &batchv1.Job{
ObjectMeta: metav1.ObjectMeta{
Name: RestoreJobName(p.Server),