Commit fd502bd
fix: handle existing RHOAI operator on a different channel
When an older RHOAI version is already installed on a different channel,
OLM can't find an upgrade path and the subscription stays stuck on the
old CSV. Detect channel mismatch and delete the old subscription/CSV
before applying the new one. Also use currentCSV instead of installedCSV
to avoid reading stale status after deletion.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 70171b4 commit fd502bd
2 files changed
Lines changed: 32 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
215 | 228 | | |
216 | 229 | | |
217 | 230 | | |
218 | 231 | | |
219 | | - | |
| 232 | + | |
| 233 | + | |
220 | 234 | | |
221 | 235 | | |
222 | | - | |
| 236 | + | |
223 | 237 | | |
224 | 238 | | |
225 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
354 | 367 | | |
355 | 368 | | |
356 | 369 | | |
357 | 370 | | |
358 | | - | |
| 371 | + | |
| 372 | + | |
359 | 373 | | |
360 | 374 | | |
361 | | - | |
| 375 | + | |
362 | 376 | | |
363 | 377 | | |
364 | 378 | | |
| |||
0 commit comments