-
Notifications
You must be signed in to change notification settings - Fork 86
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 repoThat 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.
DreamingRaven, heavybullets8, eddiewang, majodev, croneter and 2 morecroneter and anthr76
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status