Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-1272

"opm alpha render-veneer basic" doesn't support pipe stdin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 4.13.0
    • OLM
    • None
    • [OLM-225] Deppy - Qubernetes, OLM 226 - Ratatouille, OLM 227 - Spyro the Dragon
    • 3
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      opm alpha render-veneer basic doesn't support pipe stdin

      Version-Release number of selected component (if applicable):

      zhaoxia@xzha-mac OCP-53869 % opm version
      Version: version.Version{OpmVersion:"7bc5831fd", GitCommit:"7bc5831fd6bd1c4f3494a29470f103de3f8f14f3", BuildDate:"2022-09-13T00:29:33Z", GoOs:"darwin", GoArch:"amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      1. create catalog-basic-veneer.yaml 
      zhaoxia@xzha-mac OCP-53869 % cat catalog-basic-veneer.yaml 
      ---
      schema: olm.package
      name: nginx-operator
      defaultChannel: stable
      ---
      schema: olm.channel
      package: nginx-operator
      name: stable
      entries:
      - name: nginx-operator.v0.0.1
      - name: nginx-operator.v1.0.1
        replaces: nginx-operator.v0.0.1
      ---
      schema: olm.bundle
      image: quay.io/olmqe/nginxolm-operator-bundle:v0.0.1
      ---
      schema: olm.bundle
      image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1 
      
      2. run "cat catalog-basic-veneer.yaml| opm alpha render-veneer basic"
      
      zhaoxia@xzha-mac OCP-53869 % cat catalog-basic-veneer.yaml| opm alpha render-veneer basic
      Error: accepts 1 arg(s), received 0
      Usage:
        opm alpha render-veneer basic basic-veneer-file [flags]
      
      
      Flags:
        -h, --help            help for basic
        -o, --output string   Output format (json|yaml) (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 
      
      3.
      

      Actual results:

      opm alpha render-veneer basic doesn't support pipe stdin

      Expected results:

      "opm alpha render-veneer basic" should support pipe stdin like "opm alpha render-veneer semver"

      Additional info:

      zhaoxia@xzha-mac OCP-53869 % opm alpha render-veneer -h
      Render a veneer type
      
      
      Usage:
        opm alpha render-veneer [command]
      
      
      Available Commands:
        basic       Generate a declarative config blob from a single 'basic veneer' file
        semver      Generate a file-based catalog from a single 'semver veneer' file 
      When FILE is '-' or not provided, the veneer is read from standard input
      
      

              rh-ee-cchantse Catherine Chan-Tse
              rhn-support-xzha Xia Zhao
              Xia Zhao Xia Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: