Advertisement
Intermediate ArgoCD, Sync Waves & Hooks

How do you notify an external system after a successful deployment using hooks?

Short answer

Add a PostSync hook Job that calls the external system (webhook, deployment tracker, ChatOps). Because it runs only after resources are Healthy, it reliably signals a completed deployment. Alternatively, use the Notifications controller for event-driven alerts without a hook.

Save ArgoCD mock interview
Advertisement
AModel answer
Add a PostSync hook Job that calls the external system (webhook, deployment tracker, ChatOps). Because it runs only after resources are Healthy, it reliably signals a completed deployment. Alternatively, use the Notifications controller for event-driven alerts without a hook.
metadata:
  annotations:
    argocd.argoproj.io/hook: PostSync
Real-world example
A PostSync hook posts a 'deployed' event to the release dashboard once the app is healthy.
Likely follow-ups
  • Hook vs Notifications controller for alerts? | Why PostSync for deployment notifications?
Related topics