-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility of an upgrade from one package to another #466
Comments
This should not be possible if we are filtering bundles by package name based on |
We don't seem to do that: I can only see filtering by bundle image here. And we filter successors by package name, but we rely on installed package name. I think as part of work for #449 I will have to have both |
Yeah, I think I started to put the pieces together as I reviewed #460, and I left a few comments in this area: |
I think there is a case when there are packages
package1
andpackage2
with bundles which share the same bundle image. I think two following pieces of code (they work together) might allow upgrading frompackage1
topackage2
.operator-controller/internal/resolution/variablesources/bundle_deployment.go
Lines 43 to 53 in 7161a7b
operator-controller/internal/resolution/variablesources/installed_package.go
Lines 31 to 43 in 7161a7b
E.g. when catalogs (single catalog or two different catalogs) have something like this:
package1
bundles:image:tag1
- version1.0.0
package2
bundles:image:tag1
- version1.0.0
image:tag2
- version1.0.1
In this case, I think, when we install
package1
at version1.0.0
and then upgrade - our installed bundle might end up being the one frompackage2
since we search bundes by image references. And installed bundle is driving successors.I looked into how to mitigate this in #442 but it didn't feel like the right solutiion.
The text was updated successfully, but these errors were encountered: