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.
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: PostSyncReal-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