Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't install kyverno CLI using Krew in my MacBook Air M1 (arm64) #3020

Closed
scraly opened this issue Jan 19, 2022 · 4 comments
Closed
Labels
bug Something isn't working end user This label is used to track the issue that is raised by the end user.

Comments

@scraly
Copy link

scraly commented Jan 19, 2022

Software version numbers

  • Kyverno version:

2.1.6

Describe the bug

I want to install kyverno CLI using Krew in my MacBook Air M1.
But when I execute the command found in the Kyverno official documentation, I have an issue.

To Reproduce

Execute the following command:

$ kubectl krew install kyverno

Output:

Updated the local copy of plugin index.
Updated the local copy of plugin index "scraly".
  New plugins available:
    * directpv
    * explore
    * htpasswd
    * kruise
    * ktop
    * kuota-calc
    * pv-migrate
    * relay
    * secretdata
    * stern
  Upgrades available for installed plugins:
    * oidc-login v1.25.0 -> v1.25.1
Installing plugin: kyverno
W0119 12:00:08.014743   91152 install.go:164] failed to install plugin "kyverno": plugin "kyverno" does not offer installation for this platform
F0119 12:00:08.015050   91152 root.go:79] failed to install some plugins: [kyverno]: plugin "kyverno" does not offer installation for this platform
goroutine 1 [running]:
k8s.io/klog/v2.stacks(0x14000132001, 0x14000426000, 0x94, 0xe2)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:1021 +0xac
k8s.io/klog/v2.(*loggingT).output(0x103742900, 0x14000000003, 0x0, 0x0, 0x140003a7030, 0x1034b52e5, 0x7, 0x4f, 0x1400017be00)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:970 +0x164
k8s.io/klog/v2.(*loggingT).printDepth(0x103742900, 0x14000000003, 0x0, 0x0, 0x0, 0x0, 0x1, 0x14000565540, 0x1, 0x1)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:733 +0x120
k8s.io/klog/v2.(*loggingT).print(...)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:715
k8s.io/klog/v2.Fatal(...)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:1489
sigs.k8s.io/krew/cmd/krew/cmd.Execute()
	/home/runner/work/krew/krew/cmd/krew/cmd/root.go:79 +0x224
main.main()
	/home/runner/work/krew/krew/cmd/krew/main.go:25 +0x3c

goroutine 18 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x103742900)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:1164 +0x70
created by k8s.io/klog/v2.init.0
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:418 +0x128

goroutine 11 [IO wait]:
internal/poll.runtime_pollWait(0x12a749e48, 0x72, 0x1033eb4b8)
	/opt/hostedtoolcache/go/1.16.8/x64/src/runtime/netpoll.go:222 +0x44
internal/poll.(*pollDesc).wait(0x1400028e298, 0x72, 0xe00, 0xe03, 0xffffffffffffffff)
	/opt/hostedtoolcache/go/1.16.8/x64/src/internal/poll/fd_poll_runtime.go:87 +0x38
internal/poll.(*pollDesc).waitRead(...)
	/opt/hostedtoolcache/go/1.16.8/x64/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0x1400028e280, 0x140001d1000, 0xe03, 0xe03, 0x0, 0x0, 0x0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/internal/poll/fd_unix.go:166 +0x180
net.(*netFD).Read(0x1400028e280, 0x140001d1000, 0xe03, 0xe03, 0x140001d1005, 0x140002188d8, 0x14000685798)
	/opt/hostedtoolcache/go/1.16.8/x64/src/net/fd_posix.go:55 +0x44
net.(*conn).Read(0x14000092010, 0x140001d1000, 0xe03, 0xe03, 0x0, 0x0, 0x0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/net/net.go:183 +0x74
crypto/tls.(*atLeastReader).Read(0x1400034c9c0, 0x140001d1000, 0xe03, 0xe03, 0x14000080900, 0x102f96be0, 0x0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/crypto/tls/conn.go:776 +0x58
bytes.(*Buffer).ReadFrom(0x140000ba278, 0x1033f6668, 0x1400034c9c0, 0x102f94394, 0x10335dc40, 0x1033c9e00)
	/opt/hostedtoolcache/go/1.16.8/x64/src/bytes/buffer.go:204 +0xa4
crypto/tls.(*Conn).readFromUntil(0x140000ba000, 0x12a6e4048, 0x14000092010, 0x5, 0x14000092010, 0x1033f6668)
	/opt/hostedtoolcache/go/1.16.8/x64/src/crypto/tls/conn.go:798 +0xd0
crypto/tls.(*Conn).readRecordOrCCS(0x140000ba000, 0x0, 0x0, 0x102d80e1c)
	/opt/hostedtoolcache/go/1.16.8/x64/src/crypto/tls/conn.go:605 +0xd8
crypto/tls.(*Conn).readRecord(...)
	/opt/hostedtoolcache/go/1.16.8/x64/src/crypto/tls/conn.go:573
crypto/tls.(*Conn).Read(0x140000ba000, 0x1400025e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/crypto/tls/conn.go:1276 +0x12c
bufio.(*Reader).Read(0x1400048a660, 0x1400024e118, 0x9, 0x9, 0x14000685c18, 0x1030089d0, 0x1400048a6c0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/bufio/bufio.go:227 +0x20c
io.ReadAtLeast(0x1033f6508, 0x1400048a660, 0x1400024e118, 0x9, 0x9, 0x9, 0x140002aa410, 0x14000154200, 0x140002aa410)
	/opt/hostedtoolcache/go/1.16.8/x64/src/io/io.go:328 +0x78
io.ReadFull(...)
	/opt/hostedtoolcache/go/1.16.8/x64/src/io/io.go:347
net/http.http2readFrameHeader(0x1400024e118, 0x9, 0x9, 0x1033f6508, 0x1400048a660, 0x0, 0x100000000, 0x1400031b410, 0x0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/net/http/h2_bundle.go:1477 +0x5c
net/http.(*http2Framer).ReadFrame(0x1400024e0e0, 0x1400031b410, 0x0, 0x0, 0x0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/net/http/h2_bundle.go:1735 +0x74
net/http.(*http2clientConnReadLoop).run(0x14000685fa8, 0x0, 0x0)
	/opt/hostedtoolcache/go/1.16.8/x64/src/net/http/h2_bundle.go:8331 +0xac
net/http.(*http2ClientConn).readLoop(0x14000582300)
	/opt/hostedtoolcache/go/1.16.8/x64/src/net/http/h2_bundle.go:8253 +0x60
created by net/http.(*http2Transport).newClientConn
	/opt/hostedtoolcache/go/1.16.8/x64/src/net/http/h2_bundle.go:7217 +0x548

Expected behavior
A clear and concise description of what you expected to happen.

kyverno CLI installed and working in my MacBook Air M1.

@scraly scraly added the bug Something isn't working label Jan 19, 2022
@chipzoller chipzoller added the end user This label is used to track the issue that is raised by the end user. label Jan 19, 2022
@chipzoller
Copy link
Member

plugin "kyverno" does not offer installation for this platform

Kyverno CLI is not currently built for Apple silicon.

@scraly
Copy link
Author

scraly commented Jan 20, 2022

The problem is that when an user/a developer follow the official procedure, he have this error message.
On the official documentation I haven't found any relevant message about "Kyverno CLI is not currently built for Apple silicon." 🙂

However, by following the build from binaries procedure, I was able to install it on my MacBook M1.

So is it possible to allow the possibility to M1 users to install the kyverno plugin or add a message on the website?

Thanks

@scraly
Copy link
Author

scraly commented Jan 20, 2022

I've just saw commits that add arm64 on GoReleaser and Krew configuration files 👍
So hope in the next release kyverno plugin will be available for M1, is it right?

Thx

@scraly scraly changed the title [BUG] Can't install kyverno CLI using Krew in my MacBook Air M1 [BUG] Can't install kyverno CLI using Krew in my MacBook Air M1 (arm64) Jan 20, 2022
@samj1912
Copy link
Contributor

@scraly that is correct. This was recently fixed in #3002 which is merged and will be made available in the 1.6 release. I am closing this issue and adding it to the 1.6 tracker :)

@samj1912 samj1912 added this to the Kyverno Release 1.6.0 milestone Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working end user This label is used to track the issue that is raised by the end user.
Projects
None yet
Development

No branches or pull requests

3 participants