Sync Phases and Hooks: Run Your Own Code Around a Sync
64%
Cleaning Up Hook Resources
Each sync creates a hook resource. Without cleanup, every deploy leaves another completed Job in the namespace, and after fifty deploys you have fifty Jobs to scroll past. The argocd.argoproj.io/hook-delete-policy annotation controls when Argo CD removes them.
| Policy | Argo CD deletes the hook | Reach for it when |
|---|---|---|
HookSucceeded | After the hook succeeds | You want successes cleaned up and failures kept for debugging. |
HookFailed |
GitOps the Hard Way, with Argo CD
Build Real GitOps Pipelines From Empty Clusters to Automated DeploysEnroll now to unlock all content and receive all future updates for free.
Unlock now $20.99$16.79Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
