Commit da33cd8
committed
controller: nrop: switch to vertical per-tree processing
Change reconcileResource from horizontal orchestration (all trees
complete machine config step, then all trees complete daemonset step)
to vertical processing (each tree progresses through all steps
independently). This means a single slow nodegroup no longer blocks
progress for the others.
Move tree normalization from the pre-processing loop in Reconcile
into the per-tree loop in reconcileResource, where it naturally
belongs alongside the rest of per-tree processing.
Add a test verifying that a tree whose MCP is ready creates its
DaemonSet even while another tree's MCP is still pending.
AI-attribution: AIA PAI CeNc Hin R claude-4.6-opus-1M v1.0
Signed-off-by: Francesco Romani <fromani@redhat.com>1 parent 92657bf commit da33cd8
2 files changed
Lines changed: 73 additions & 30 deletions
File tree
- internal/controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 183 | | |
188 | 184 | | |
189 | 185 | | |
| |||
259 | 255 | | |
260 | 256 | | |
261 | 257 | | |
262 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
263 | 261 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
270 | 271 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | 272 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
284 | 277 | | |
285 | | - | |
286 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
287 | 283 | | |
288 | 284 | | |
289 | | - | |
290 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
291 | 288 | | |
292 | 289 | | |
293 | | - | |
294 | | - | |
| 290 | + | |
295 | 291 | | |
296 | 292 | | |
297 | 293 | | |
| |||
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2268 | 2268 | | |
2269 | 2269 | | |
2270 | 2270 | | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
2271 | 2318 | | |
2272 | 2319 | | |
2273 | 2320 | | |
| |||
0 commit comments