Commit ef72845
committed
Sort cell-names in nova_controller
As of now, the orderedCellNames variable contains 'cell0' as first
element and then appends cell-names coming from CellTemplates map,
which doesn't provide stable ordering. Then the CR status condition
message could change for each reconcile with any change in the actual
status of the CR. And a changing status message could trigger
unnecessary reconcile loops.
This change sorts the cell-names and also make sure
that the cell0 is the first element in the orderedCellNames
slice to maintain stable ordering.
Closes: #OSPRH-99801 parent dfc4cc1 commit ef72845
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 309 | + | |
312 | 310 | | |
313 | 311 | | |
314 | 312 | | |
315 | 313 | | |
316 | 314 | | |
317 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
318 | 323 | | |
319 | 324 | | |
320 | 325 | | |
| |||
0 commit comments