Uploaded image for project: 'OpenShift Cloud Credential Operator'
  1. OpenShift Cloud Credential Operator
  2. CCO-611

Release ccoctl for non-linux systems

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • Release ccoctl for other os.
    • Improvement
    • False
    • None
    • False
    • Not Selected
    • To Do

      Produce binary for macOS and Windows.

      https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/ should contain more than linux for ccoctl like other CLIs.

      macOS may be easier since unix based and I have had success simply using following script to install and launch clusters in the past.

      Cloud providers CLI generally perform the same under macOS as it does on linux. 

      export OPENSHIFT_REJECT_VERSIONS_EXPRESSION="nightly|rc|fc|ci|ec"
      function openshift-patch-versions-arm64(){
          curl --silent https://openshift-release-artifacts-arm64.apps.ci.l2s4.p1.openshiftapps.com/ | grep -vE $OPENSHIFT_REJECT_VERSIONS_EXPRESSION | cut -d '"' -f 2 | sed "s/\///g" | grep -vE "<|>|en|utf|^$" | grep -ve "\.\." | sort -V | awk -F. '{if(!a[$1"."$2]++)print $1"."$2"."$NF}'
      }
      alias latest-openshift-minor-version-arm64="openshift-patch-versions-arm64 | tail -n 1 | cut -d '.' -f 1,2"
      function install-ccoctl(){
          go install github.com/openshift/cloud-credential-operator/cmd/ccoctl@release-$(latest-openshift-minor-version-arm64)
      }
      

       
       

              Unassigned Unassigned
              tkaovila@redhat.com Tiger Kaovilai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: