fix: keep sync hooks running on a forced sync - #275
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. Walkthrough
ChangesApplication sync strategy
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change restores hooks for forced syncs while preserving apply-only behavior, with no actionable merge-blocking risk remaining after normal checks and review. 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
A forced sync sent
strategy.apply, which is apply-only — the app's PreSync/PostSync/SyncFail hooks were silently skipped.Upstream
types.go:Hookis the default strategy;Applymeans kubectl apply without hooks. The Web UI keeps the two independent (application-sync-panel.tsx):ApplyOnlypicks the strategy,Forceis a flag on whichever one is chosen.Force now rides on
strategy.hook. Apply-only is not exposed in argonaut, so nothing selectsstrategy.applyany more.Summary by CodeRabbit
Bug Fixes
Tests