Commit d3cbb5a
committed
Fix Helm to Boxcutter migration during OLM upgrade
When upgrading OLM from standard (Helm runtime) to experimental
(Boxcutter runtime), the BoxcutterStorageMigrator creates a
ClusterExtensionRevision from the existing Helm release to preserve
the installation state. However, the migrated revision was created
without any status conditions, causing it to not be recognized as
an "Installed" revision.
BoxcutterRevisionStatesGetter determines if a revision is installed
by checking for the Succeeded=True condition. When this condition is
absent, the revision is treated as "RollingOut" rather than
"Installed", which breaks subsequent upgrade operations because the
system doesn't know what version is currently installed.
This fix sets an initial Succeeded status condition on the migrated
revision immediately after creation, ensuring it's recognized as an
installed revision and allowing version upgrades to proceed correctly
after the OLM upgrade.
Fixes the test-upgrade-st2ex-e2e test failure where upgrading from
version 1.0.0 to 1.0.1 after the OLM upgrade would fail because the
system couldn't determine the currently installed version.1 parent 95f7f9a commit d3cbb5a
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
269 | 283 | | |
270 | 284 | | |
271 | 285 | | |
| |||
0 commit comments