-
Notifications
You must be signed in to change notification settings - Fork 545
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 picks an operator dependency randomly for operators handling same resources kind provided by the same CatalogSource #1158
Comments
Hello, We are having conflicts on OLM for our operator. This is also problematic with AMQ Streams & Strimzi (Red Hat & Community catalogs). |
@radtriste The behaviour is deterministic: if dependencies are required and multiple Operators exist to fulfil them, the following is the order of preference:
If you want to force your Operator to be using a particular dependent Operator, you would ship them in the same catalog. There was a bug in an older OLM version, that did not implement this behaviour correctly and it seemed non-deterministic which Operator was chosen. |
@dmesser Thx for the answer. So it should be corrected by now. |
Testing on Openshift 4.2.9 and this seems indeed corrected. I cannot reproduce the problem. |
@radtriste @dmesser thanks you guys! |
Bug Report
A Strimzi user reported this issue on our project strimzi/strimzi-kafka-operator#2265 and it seems that the OLM selects which operator dependency to use quite randomly.
The Strimzi and the AMQ Streams operators handle the same resources kind in this specific use case, but which dependency is used isn't deterministic.
What did you do?
Specifying requirements for an operator in this way.
What did you expect to see?
The OLM should always pick the same operator dependency.
What did you see instead? Under which circumstances?
The OLM should always pick an operator dependency randomly.
Environment
Strimzi version: 0.14.0 (AMQ Streams 1.3.0)
Installation method: OperatorHub.io
Kubernetes cluster: OpenShift 4.2
Infrastructure: CRC
The text was updated successfully, but these errors were encountered: