Advertisement
Advanced ArgoCD, Sync Waves & Hooks

What is a SyncFail hook and how is it used?

Short answer

A SyncFail hook runs only when a sync operation fails, used for cleanup, rollback of partial changes, or alerting. It lets you react to failed deployments within the sync lifecycle rather than relying solely on external monitoring.

Save ArgoCD mock interview
Advertisement
AModel answer
A SyncFail hook runs only when a sync operation fails, used for cleanup, rollback of partial changes, or alerting. It lets you react to failed deployments within the sync lifecycle rather than relying solely on external monitoring.
metadata:
  annotations:
    argocd.argoproj.io/hook: SyncFail
Real-world example
On a failed sync, a SyncFail hook cleans up temporary resources and posts an alert to the incident channel.
Likely follow-ups
  • When does SyncFail run? | What tasks suit SyncFail?
Related topics