robscott/kube-capacity

Can't install plugin on new macs with Apple Silicon / M1 processors

sammcj opened this issue · 4 comments

kubectl krew install resource-capacity
Updated the local copy of plugin index.
Updated the local copy of plugin index "kvaps".
Installing plugin: resource-capacity
W0829 14:00:23.068357   12540 install.go:164] failed to install plugin "resource-capacity": plugin "resource-capacity" does not offer installation for this platform
F0829 14:00:23.068404   12540 root.go:79] failed to install some plugins: [resource-capacity]: plugin "resource-capacity" does not offer installation for this platform

Is it possible to add darwin/arm64 (I think that's right for go?) to the builds to make it work?

In case this helps unblock you temporarily: While this is not a fix for crew, there is an m1 Mac release that can be manually downloaded.

Confirmed working - thanks!

kube-capacity_0.6.1_Darwin_arm64 ./kube-capacity
NODE                       CPU REQUESTS   CPU LIMITS   MEMORY REQUESTS   MEMORY LIMITS
k3d-k3s-default-server-0   0Mi (0%)       0Mi (0%)     0Mi (0%)          0Mi (0%)

@sammcj this will also be fixed in the future with krew, in this pull request.

Thanks for fixing this @ivanfetch!