Commit 5086f39
Fix status reconciler requeue logic: RequeueAfter and skip equal-status write
Two issues in the previous requeue logic:
1. The guard `equalStatus && newAvailable` caused the unavailable-but-equal
case to fall through to a status write even when nothing had changed,
producing a no-op write on every reconcile while the instance remained
unavailable. The new `if equalStatus` guard short-circuits both the
available and unavailable steady states, avoiding the unnecessary write.
2. Both unavailable return paths used `Requeue: true` (immediate requeue),
which causes tight-loop reconciliation against an instance that is still
unavailable. Switching to `RequeueAfter: 30s` gives components time to
recover between checks and avoids extending backoff counter.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1d57c8d commit 5086f39
2 files changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
| 57 | + | |
61 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | | - | |
| 643 | + | |
| 644 | + | |
645 | 645 | | |
646 | 646 | | |
0 commit comments