-
Notifications
You must be signed in to change notification settings - Fork 551
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
OLM dependency doesn't always deploy operator from the default channel #2067
Comments
Are you able to share the index image that you've used to reproduce this? That doc looks correct to me -- it should consistently select the version in the default channel unless there is a conflict that blocks installation of the default channel entry. |
Yes sure, Thanks for your quick response! These are steps to reproduce this issue:
and
|
Great, thanks. Using the CatalogSources and images you provided, I was able to reproduce this with https://github.com/benluddy/depster. It's fixed for me with #2068. |
Thanks for your quick fix! Could we cherry-pick the fix to release-4.6 and release-4.7? We will add it as a known issue in our product, but we expect it will be fixed in the Z version OCP. |
I opened https://bugzilla.redhat.com/show_bug.cgi?id=1945261 to track this downstream and marked it to be backported to 4.6. |
Bug Report
What did you do?
A clear and concise description of the steps you took (or insert a code snippet).
I have Operator A and Operator B,
Operator A depends on Operator B.
In the bundle metadata of Operator A, there is a
dependencies.yaml
file to specify the package version and GVK of Operator B.In Operator B, there are two channels that can fulfill the requirements in the
dependencies.yaml
of Operator A,beta
channel andv3
channel. Thev3
channel is the default channel of Operator B.What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
What I expect to see is
v3
channel of the Operator B can be always chosen when deploying the Operator A.What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).
What I observe is after deploying the Operator A, sometimes
beta
channel of Operator B is picked and sometimesv3
channel of Operator B is picked up, which is against the dependency resolutionEnvironment
0.16.1 and 0.17.0
1.19 and 1.20
OCP
Possible Solution
NO
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: