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

oc mirror version does not follow kubernetes version schema

XMLWordPrintable

    • Moderate
    • No
    • CFE Sprint 233, CFE Sprint 234
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, oc-mirror flags `--short`, `-v`, and '--verbose' used to provide incorrect version information. You can now use the oc mirror `version' flag to know the correct version of oc-mirror. The oc-mirror flags `--short`, `-v`, and `--verbose` have been deprecated and will no longer be supported.
      Show
      Previously, oc-mirror flags `--short`, `-v`, and '--verbose' used to provide incorrect version information. You can now use the oc mirror `version' flag to know the correct version of oc-mirror. The oc-mirror flags `--short`, `-v`, and `--verbose` have been deprecated and will no longer be supported.
    • Bug Fix
    • Done

      Description of problem:

      Kubernetes versions are expressed as x.y.z [1] while oc-mirror doesn't follow it. And it's hard for users to understand what version they are using.
      
      $ oc mirror version
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.11.0-202211072116.p0.g3c1c80c.assembly.stream-3c1c80c", GitCommit:"3c1c80ca6a5a22b5826c88897e7a9e5acd7c1a96", GitTreeState:"clean", BuildDate:"2022-11-07T23:28:10Z", GoVersion:"go1.18.7", Compiler:"gc", Platform:"linux/amd64"}
      
      [1] https://kubernetes.io/releases/version-skew-policy/#kubectl

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

       

      How reproducible:

      1/1

      Steps to Reproduce:

      1. Extract oc-mirror
      2. Check oc-mirror version
      3.
      

      Actual results:

      oc mirror shows users confusing version numbers

      Expected results:

      oc mirror shows version in x.y.z schema

      Additional info:

       

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

              Created:
              Updated:
              Resolved: