-
Notifications
You must be signed in to change notification settings - Fork 252
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
opm index add default channel issue #387
Comments
looks like there is an issue, that despite default channel defined (3.x), older version is in multiple channels (stable and 2.x) and the tool has no mechanism to set default channel. I propose to use the first one (stable) as default. So contributor can set default by moving package entry up. Could you please @Bowenislandsong have a look? Thank you. |
I think it is up to you which channel should be considered the default. According to the pacakge.yaml it should have been the I am under the impression that this is related to #386. In this case, the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#503 with this change, the default channel is always specified by the highest semver-version bundle in the package. |
Hi, we have an issue with
opm index add
here https://github.com/J0zi/community-operators/blob/RHO-644-cockroachdb/upstream-community-operators/cockroachdb/cockroachdb.package.yamlI put everything to channels and opm complains:
bundles="[kind-registry:5000/test-operator/cockroachdb:v2.0.9 kind-registry:5000/test-operator/cockroachdb:v2.1.1 kind-registry:5000/test-operator/cockroachdb:v2.1.11 kind-registry:5000/test-operator/cockroachdb:v3.0.7]" error="error loading bundle from image: Error adding package error loading bundle into db: no default channel specified for cockroachdb" Error: error loading bundle from image: Error adding package error loading bundle into db: no default channel specified for cockroachdb
as you see, default channel is here
command used
/tmp/operator-test/bin/opm index add -u docker --bundles kind-registry:5000/test-operator/cockroachdb:v2.0.9,kind-registry:5000/test-operator/cockroachdb:v2.1.1,kind-registry:5000/test-operator/cockroachdb:v2.1.11,kind-registry:5000/test-operator/cockroachdb:v3.0.7 --tag kind-registry:5000/test-operator/index:latest --mode replaces
opm version 1.13
The text was updated successfully, but these errors were encountered: