Commit 79c1830
authored
Fix stale status blocking deployment reconciliation (#551)
## Summary
- Move `ObservedGeneration` assignment before the `DeepEqual` status
diff check in `GrantCreationPolicyReconciler` and
`ClaimCreationPolicyReconciler` so that spec changes which produce the
same validation result still trigger a status update.
- Without this fix, `observedGeneration` never advances when conditions
remain unchanged, causing Flux health checks to permanently report
"InProgress".
- The other quota reconcilers (`ResourceRegistration`, `ResourceGrant`,
`AllowanceBucket`) already follow the correct pattern and required no
changes.
Fixes #550
## Test plan
- [x] Unit tests pass (`task test:unit`)
- [ ] Deploy to test environment and verify `observedGeneration`
advances after a no-op spec change on a `GrantCreationPolicy` or
`ClaimCreationPolicy`
- [ ] Confirm Flux health checks transition to "Ready" after the fix
🤖 Generated with [Claude Code](https://claude.com/claude-code)3 files changed
Lines changed: 402 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | | - | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
82 | 81 | | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments