Feedback

Chat Icon

GitOps the Hard Way, with Argo CD

Build Real GitOps Pipelines From Empty Clusters to Automated Deploys

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.

PolicyArgo CD deletes the hookReach for it when
HookSucceededAfter the hook succeedsYou 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 Deploys

Enroll now to unlock all content and receive all future updates for free.