From cb18509510be734f3445475ce618f70617a5b9ad Mon Sep 17 00:00:00 2001 From: "Md. Anisur Rahman" <54911684+anisurrahman75@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:28:13 +0600 Subject: [PATCH] Add new hookExecutionPolicy `OnFinalRetryFailure` (#274) Signed-off-by: anisurrahman75 --- docs/concepts/crds/backupconfiguration/index.md | 2 +- docs/guides/hooks/overview/index.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/concepts/crds/backupconfiguration/index.md b/docs/concepts/crds/backupconfiguration/index.md index e9319c6e..32f799ca 100644 --- a/docs/concepts/crds/backupconfiguration/index.md +++ b/docs/concepts/crds/backupconfiguration/index.md @@ -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 diff --git a/docs/guides/hooks/overview/index.md b/docs/guides/hooks/overview/index.md index 1d067f2d..146055ae 100644 --- a/docs/guides/hooks/overview/index.md +++ b/docs/guides/hooks/overview/index.md @@ -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`.