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

Version shown for `oc-mirror --v2 version` should be similar to `oc-mirror version`

XMLWordPrintable

    • Important
    • None
    • CLID Sprint 251
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress
    • Customer Facing

      Description of problem:

      Version shown for `oc-mirror --v2 version` should be similar to `oc-mirror version`

       

       

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

      oc-mirror version 
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.16.0-202403070215.p0.gc4f8295.assembly.stream.el9-c4f8295", GitCommit:"c4f829512107f7d0f52a057cd429de2030b9b3b3", GitTreeState:"clean", BuildDate:"2024-03-07T03:46:24Z", GoVersion:"go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      1) `oc-mirror –v2 -v` 

      Actual results: 

      oc-mirror --v2 -v--v2 flag identified, flow redirected to the oc-mirror v2 version. PLEASE DO NOT USE that. V2 is still under development and it is not ready to be used. oc-mirror version v2.0.0-dev-01 

      Expected results:

      oc-mirror version --output=yaml
      clientVersion:
        buildDate: "2024-03-07T03:46:24Z"
        compiler: gc
        gitCommit: c4f829512107f7d0f52a057cd429de2030b9b3b3
        gitTreeState: clean
        gitVersion: 4.16.0-202403070215.p0.gc4f8295.assembly.stream.el9-c4f8295
        goVersion: go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime
        major: ""
        minor: ""
        platform: linux/amd64

            rh-ee-aguidi Alex Guidi
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: