Closed horis233 closed 3 years ago
Hey @horis233!
Sorry I missed this bug report. This is definitely something we can fix.
Feel free to ping on Slack if you don't hear back on issues in this project. Sometimes I miss things here because it's less active than OLM's main projects.
Question
How to handle the case that one operator package is provided by multiple catalogsources?
Background
When users want to migrate the same operator from one catalogsource to another catalogsource or some other user case, there will be more than one catalogsources providing the same operator package. It causes there are multiple packageManifests using the same namespace in the same namespace, like
In this case, the
kubectl operator
can't distinguish the difference between the packageManifest from different catalogsources and it uses theget
command to fetch the packageManifest, which causes it will choose a random packageManifest from catalogsources.This the result of the
kubectl operator list-available
command. It could have different results when executing the command twice in the same cluster.Expect to know
Should I expect
kubectl operator
to handle this kind of scenario better? For example, usinglist
command and filter the package name to get all the candidate packageManifests.What is the best way to get the target PackageManifest? What I can think of is using
list
command and filter the result. Is there a best practice for it?cc @cdjohnson