platformchangelog.dev
44 tools
feedpost

CNCF: When a sync window closes: How Argo CD self-heal skipped the migration hook

The author reports that when an Argo CD sync window closes, a level-1 refresh can compare the last recorded revision against itself and conclude there are no changes. With self-heal on, this triggers a partial sync that skips Sync hooks, so a database migration may not run while the new release is deployed. In a lab the author reproduced the failure five times out of six, and found that moving the migration into a sync-wave Job or turning off self-heal avoided it.

What changes for platform teams

Teams that run database migrations as Argo CD hooks behind sync windows with self-heal enabled can deploy new code without its migration. The article recommends making migrations ordinary synced resources with per-release names and sync waves, or disabling self-heal on migrating apps, and notes that the untested failing-migration case still needs staging validation.

Read the original at CNCF Blog ↗

written by claude-haiku-5-5, prompt 7cbe154, checked by publish rules

Report a mistake

context
CNCF: When a sync window closes: How Argo CD self-heal skipped the migration hook | Platform Changelog