Commit 592dcd2
fix: Use latest rolling-out revision instead of oldest
RollingOut revisions are sorted oldest→newest, so checking the first
element (index 0) could cause unnecessary re-resolution when a newer
rolling-out revision already matches the current spec.
Now checks the last element (latest rolling-out revision) before
deciding whether to resolve a new bundle from catalog.
This prevents creating extra revisions when multiple rolling-out
revisions exist (e.g., older revision stuck, newer one rolling out).
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent d881e80 commit 592dcd2
File tree
1 file changed
+9
-5
lines changed- internal/operator-controller/controllers
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | | - | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
153 | | - | |
| 157 | + | |
154 | 158 | | |
155 | | - | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
161 | | - | |
| 165 | + | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| |||
0 commit comments