okd-project / okd

The self-managing, auto-upgrading, Kubernetes distribution for everyone
https://okd.io
Apache License 2.0
1.76k stars 297 forks source link

OKD Client `oc` does not run on Apple Silicon #1419

Closed cgruver closed 2 months ago

cgruver commented 1 year ago

Apple MacBook Air M2 OKD version: 4.11.0-0.okd-2022-11-19-050030 MacOS version: 13.0.1 (22A400)

  1. download openshift-client-mac-arm64-4.11.0-0.okd-2022-11-19-050030.tar.gz

  2. Uncompress on an M2 MacBook

  3. Run oc

  4. Observe the error:

    “oc” is damaged and can’t be opened. You should move it to the Trash.

If you build the OpenShift client from source on the M2 platform, then it works.

jacksgt commented 1 year ago

I believe there's already an upstream bug tracking this: https://github.com/openshift/oc/issues/1221

vrutkovs commented 1 year ago

Could anyone check if oc extracted from 4.12 nightlies work? If it is, then its a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=2059125

cgruver commented 1 year ago

This workaround fixes it for now:

codesign --force -s - $PATH_TO_OC/oc
cgruver commented 1 year ago

@vrutkovs It looks like it is still broken in 4.12 nightlies:

oc adm release extract --tools registry.ci.openshift.org/origin/release:4.12.0-0.okd-2022-11-28-091559
tar -xzf openshift-client-mac-arm64-4.12.0-0.okd-2022-11-28-091559.tar.gz
./oc version
zsh: killed     ./oc version
codesign --force -s - oc                                
oc: replacing existing signature
./oc version            
Client Version: 4.12.0-0.okd-2022-11-28-091559
Kustomize Version: v4.5.7
JaimeMagiera commented 2 months ago

Hi,

We are not working on FCOS builds of OKD any more. Please see these documents...

https://okd.io/blog/2024/06/01/okd-future-statement https://okd.io/blog/2024/07/30/okd-pre-release-testing

Please test with the OKD SCOS nightlies and file a new issue as needed.

Many thanks,

Jaime