Interview Prep/GitOps & Argo CD/Sync Operations, Hooks & Health

A PostSync smoke-test hook never runs, even though the sync says succeeded.

IntermediateTroubleshootingSync Operations, Hooks & Health
Answer

Likely causes → PostSync hooks run only after all resources are Healthy. If something stays Progressing (an Ingress without an address, a PVC waiting for a consumer, a Rollout paused), the hook waits. Also, a hook placed in a file that the source excludes never renders.

Diagnose → argocd app get web and look for resources not Healthy; confirm the hook is in argocd app manifests web.

Fix → Fix the stuck resource or its health check (see Q167), then re-sync.

Prevent → Keep a short list of kinds with known slow health and add custom health checks for them.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Sync Operations, Hooks & Health