operator-framework / olm-docs

Hugo doc site for https://github.com/operator-framework/operator-lifecycle-manager
10 stars 79 forks source link

Creating a Catalog of operators - Incorrect command usage of opm alpha render-veneer #249

Closed ashishth09 closed 1 year ago

ashishth09 commented 2 years ago

The section on Generating the catalog

opm alpha render-veneer semver -o yaml < example-operator-veneer.yaml > cool-catalog/catalog.yaml

It fails with the following error , using opm v.1.24.0

Error: requires at least 1 arg(s), only received 0
Usage:
  opm alpha render-veneer semver <filename> [flags]

Flags:
  -h, --help            help for semver
  -o, --output string   Output format (json|yaml|mermaid) (default "json")

Global Flags:
      --skip-tls-verify   skip TLS certificate verification for container image registries while pulling bundles
      --use-http          use plain HTTP for container image registries while pulling bundles

The correct command per latest release would be

 opm alpha render-veneer semver  example-operator-veneer.yaml  -o yaml >  cool-catalog/catalog.yaml
grokspawn commented 1 year ago

This was updated in v1.25.0. Funny story ... the doc was originally a typo, but a couple of us figured "why not support that usage" so we submitted PRs to enable it. 😄