Gating Argo CD Syncs with PreSync Hooks for Database Migrations
PreSync hooks let you block an Argo CD sync until a Kubernetes Job succeeds. Here is how to wire that up for database migrations, plus the cleanup and RBAC trade-offs to watch.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
PreSync hooks let you block an Argo CD sync until a Kubernetes Job succeeds. Here is how to wire that up for database migrations, plus the cleanup and RBAC trade-offs to watch.
Migration goal Migrate a small application to a new version using Argo CD while keeping the previous version available until the replacement passes readiness checks. The cluster supports Kubernetes rolling updates for Deployments. Decision constraint Argo CD provides sync waves for declarative resource ordering and pre-sync hooks for dynamic gating before th