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

Better to detail the --command-os of mac for `oc adm release extract` command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.12.z
    • oc
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • NA

      Description of problem:

      For multi-arch payload we have two types for mac :mac-arm64 and mac-amd64 , and now we have two oc client for those platform , when use command `oc adm release extract --command=oc --command-os='*'`  will extract two types oc for mac os, but for command `oc adm release extract --command=oc --command-os='mac'` only extract mac-amd . so need to update for the option “--command-os=mac”
      
      

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

      oc version --client
      Client Version: 4.12.0-0.nightly-2022-12-01-184212
      

      Steps:

      1) Use `oc adm release extract --command=oc --command-os='*'  --to=/tmp/macs  quay.io/openshift-release-dev/ocp-release-nightly@sha256:8c0aefc2e2ad7f4feaf8382c6f9dbf7eada45b22dc341c8eee30bffb07c79852` 
      2) Use `oc adm release extract --command=oc --command-os='mac'  --to=/tmp/mac  quay.io/openshift-release-dev/ocp-release-nightly@sha256:8c0aefc2e2ad7f4feaf8382c6f9dbf7eada45b22dc341c8eee30bffb07c79852`
      

      Actual result :

      1) Extract all available version for oc ;
      2) Only extract mac-amd64 for mac;
      

      Expected result:

      2) detail the option or extract both version mac-amd64 and mac-arm64 ;
      

              aguclu@redhat.com Arda Guclu
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: