Skip to content

Fix stale status blocking deployment reconciliation#551

Merged
scotwells merged 2 commits intomainfrom
fix/issue-550-observed-generation
Apr 2, 2026
Merged

Fix stale status blocking deployment reconciliation#551
scotwells merged 2 commits intomainfrom
fix/issue-550-observed-generation

Conversation

@scotwells
Copy link
Copy Markdown
Contributor

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

  • 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

…oncilers

Move ObservedGeneration assignment before the DeepEqual check in
GrantCreationPolicyReconciler and ClaimCreationPolicyReconciler so that
generation-only changes (where conditions remain identical) still trigger
a status write. Without this fix, Flux health checks permanently report
"InProgress" because observedGeneration never advances.

The other quota reconcilers (ResourceRegistration, ResourceGrant,
AllowanceBucket) already follow the correct pattern.

Fixes #550

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joggrbot
Copy link
Copy Markdown
Contributor

joggrbot bot commented Mar 31, 2026

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: 0b32935 | Powered by Joggr

Verify that observedGeneration advances even when a spec change produces
identical conditions — the exact scenario that caused stale status
blocking Flux reconciliation in #550.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@scotwells scotwells merged commit 79c1830 into main Apr 2, 2026
7 of 8 checks passed
@scotwells scotwells deleted the fix/issue-550-observed-generation branch April 2, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: GrantCreationPolicy controller doesn't update observedGeneration on no-op spec changes

3 participants