delete backupsession: containers have to be ran sequentially because of the restic lock on the database
This commit is contained in:
parent
1b09212f6d
commit
95408a3850
@ -124,8 +124,8 @@ func (r *BackupSessionReconciler) Reconcile(ctx context.Context, req reconcile.R
|
||||
TTLSecondsAfterFinished: &jobTtl,
|
||||
Template: corev1.PodTemplateSpec{
|
||||
Spec: corev1.PodSpec{
|
||||
InitContainers: []corev1.Container{},
|
||||
Containers: deleteSnapshots,
|
||||
InitContainers: deleteSnapshots[1:],
|
||||
Containers: []corev1.Container{deleteSnapshots[0]},
|
||||
RestartPolicy: corev1.RestartPolicyOnFailure,
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user