Open
Description
Important
This request requires restic 0.17.0 for the unlock status code and Kubernetes 1.31 for the stable podFailurePolicy
feature.
Restic mover should not try over and over to backup if the repo is locked, we could utilize the pod failure policy feature and restics exit codes to achieve this.
podReplacementPolicy: Failed # required when using podFailurePolicy
podFailurePolicy:
rules:
- action: FailJob
onExitCodes:
containerName: restic
operator: In
values: [11] # exit code 11 indicates a locked restic repo
That should mark the job as failed and not be retried until the next volsync schedule.
The current behavior is the same job will retry over and over until the backoffLimit is reached on a locked restic repo.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status