What is a PostSync hook typically used for?
Short answer
PostSync hooks run after all resources are applied and Healthy—used for smoke tests, cache warming, notifications, or registering the deployment. A failing PostSync hook marks the sync failed, signaling the release didn't pass its post-checks.
Advertisement
AModel answer
PostSync hooks run after all resources are applied and Healthy—used for smoke tests, cache warming, notifications, or registering the deployment. A failing PostSync hook marks the sync failed, signaling the release didn't pass its post-checks.
metadata:
annotations:
argocd.argoproj.io/hook: PostSyncReal-world example
A PostSync integration-test Job verifies the new version works end-to-end after deployment.
Likely follow-ups
- When does PostSync run relative to health? | What does a PostSync failure indicate?
Related topics