Skip to content

OPM doesn't error/warn when given bad cli arguments #703

@eriknelson

Description

@eriknelson

This is a result of some bad automation on our part, but I would have expected OPM to expliclity error and/or warn that the cli arguments were junk:

./opm index add -c docker --bundles quay.io/konveyor/mig-operator-bundle:release-1.3.2,quay.io/konveyor/mig-operator-bundle:release-1.4.5 release-1.4.6,quay.io/konveyor/mig-operator-bundle:release-1.5.0,quay.io/konveyor/mig-operator-bundle:latest --tag quay.io/konveyor/mig-operator-index:latest

Notice the bad argument behind 1.4.5 1.4.6

This causes it to silently only build with 1.3 and 1.4:

INFO[0000] building the index                            bundles="[quay.io/konveyor/mig-operator-bundle:release-1.3.2 quay.io/konveyor/mig-operator-bundle:release-1.4.5]"
INFO[0000] running /usr/bin/docker pull quay.io/konveyor/mig-operator-bundle:release-1.3.2  bundles="[quay.io/konveyor/mig-operator-bundle:release-1.3.2 quay.io/konveyor/mig-operator-bundle:release-1.4.5]"

No error.

Would have expected a complaint or a warning with this.

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.triagedIssue has been considered by a member of the OLM community

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions