Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new hookExecutionPolicy OnFinalRetryFailure #274

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/concepts/crds/backupconfiguration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Stash does not support providing days (`d`) in the `timeOut` field. Use the equi
- `Always`: The hook will be executed after the backup process no matter the backup has failed or succeeded. This is the default behavior.
- `OnSuccess`: The hook will be executed after the backup process only if the backup has succeeded.
- `OnFailure`: The hook will be executed after the backup process only if the backup has failed.

- `OnFinalRetryFailure`: The hook will be executed after the backup process only if the backup has failed with no more retry attempts left.
For more details on how hooks work in Stash and how to configure different types of hook, please visit [here](/docs/guides/hooks/overview/index.md).

#### spec.runtimeSettings
Expand Down
1 change: 1 addition & 0 deletions docs/guides/hooks/overview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ If the backup or restore process fails then the respective `postBackup` or `post
- `Always`: The hook will be executed after the backup/restore process no matter the backup/restore has failed or succeeded. This is the default behavior.
- `OnSuccess`: The hook will be executed after the backup/restore process only if the backup/restore has succeeded.
- `OnFailure`: The hook will be executed after the backup/restore process only if the backup/restore has failed.
- `OnFinalRetryFailure`: The hook will be executed after the backup process only if the backup has failed with no more retry attempts left.

If the `postBackup` or `postRestore` hook fails, the respective BackupSession or RestoreSession will be marked as `Failed`.

Expand Down