Skip to content

Commit

Permalink
docs(hooks): add postdelete to table (#17048) (#17051)
Browse files Browse the repository at this point in the history
Add `PostDelete` to the hooks table, and clean up wording and old availability statement (all the way back to v1, probably irrelevant).

Signed-off-by: Nicholas Morey <[email protected]>
Co-authored-by: Nicholas Morey <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and morey-tech authored Jan 31, 2024
1 parent 28c2938 commit e932556
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/user-guide/resource_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ and after a Sync operation. Hooks can also be run if a Sync operation fails at a
* Using a `Sync` hook to orchestrate a complex deployment requiring more sophistication than the
Kubernetes rolling update strategy.
* Using a `PostSync` hook to run integration and health checks after a deployment.
* Using a `SyncFail` hook to run clean-up or finalizer logic if a Sync operation fails. _`SyncFail` hooks are only available starting in v1.2_
* Using a `PostDelete` hook to run clean-up or finalizer logic after an all Application resources are deleted. Please note that
`PostDelete` hooks are only deleted if delete policy matches to the aggregated deletion hooks status and not garbage collected after the application is deleted.
* Using a `SyncFail` hook to run clean-up or finalizer logic if a Sync operation fails.
* Using a `PostDelete` hook to run clean-up or finalizer logic after all Application resources are deleted. Please note that
`PostDelete` hooks are only deleted if the delete policy matches the aggregated deletion hooks status and not garbage collected after the application is deleted.

## Usage

Expand Down Expand Up @@ -39,7 +39,8 @@ The following hooks are defined:
| `Sync` | Executes after all `PreSync` hooks completed and were successful, at the same time as the application of the manifests. |
| `Skip` | Indicates to Argo CD to skip the application of the manifest. |
| `PostSync` | Executes after all `Sync` hooks completed and were successful, a successful application, and all resources in a `Healthy` state. |
| `SyncFail` | Executes when the sync operation fails. _Available starting in v1.2_ |
| `SyncFail` | Executes when the sync operation fails. |
| `PostDelete` | Executes after all Application resources are deleted. _Available starting in v2.10._ |

### Generate Name

Expand Down

0 comments on commit e932556

Please sign in to comment.