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

Plugin "config-registry" does not offer installation for this platform #1

Closed
sharjilk opened this issue Jan 7, 2022 · 5 comments
Closed

Comments

@sharjilk
Copy link
Contributor

sharjilk commented Jan 7, 2022

When I run kubectl krew install config-registry, it gives below error.

Installing plugin: config-registry
W0107 11:02:21.832092   11509 install.go:164] failed to install plugin "config-registry": plugin "config-registry" does not offer installation for this platform
F0107 11:02:21.832136   11509 root.go:79] failed to install some plugins: [config-registry]: plugin "config-registry" does not offer installation for this platform
goroutine 1 [running]:
k8s.io/klog/v2.stacks(0x14000134001, 0x14000175700, 0xa4, 0xf2)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:1021 +0xac
k8s.io/klog/v2.(*loggingT).output(0x102bba900, 0x14000000003, 0x0, 0x0, 0x140000f61c0, 0x10292d2e5, 0x7, 0x4f, 0x1400017de00)
	/home/runner/go/pkg/mod/k8s.io/klog/v2@v2.8.0/klog.go:970 +0x164
k8s.io/klog/v2.(*loggingT).printDepth(0x102bba900, 0x14000000003, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1400009b4d0, 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(0x102bba900)
	/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

On checking kubectl krew search config-registry, it says unavailable for darwin/arm64

NAME             DESCRIPTION                            INSTALLED
config-registry  Switch between registered kubeconfigs  unavailable on darwin/arm64

How to install config-registry on mac m1 chip?

@mumoshu
Copy link
Owner

mumoshu commented Jan 7, 2022

@sharjilk Thanks for reporting! I don't have a M1 mac but probably it works after you've added darwin/arm64 to

. Would you mind contributing changes to that file?

@sharjilk
Copy link
Contributor Author

sharjilk commented Jan 7, 2022

Thanks @mumoshu, please check the pull request.

mumoshu pushed a commit that referenced this issue Jan 9, 2022
Update .krew-release-bot.yaml
@mumoshu
Copy link
Owner

mumoshu commented Jan 9, 2022

@sharjilk https://github.com/mumoshu/config-registry/releases/tag/v0.2.2 has been released with your contribution! I've verified that a darwin/arm64 archive is available in the release assets. That, in combination with your contribution to krew-bot-config yaml, you should be able to install this plugin on M1 mac now. Would you mind confirming?

@sharjilk
Copy link
Contributor Author

@mumoshu Issue has been fixed. Now I am able to install it on M1 chip mac.

@mumoshu
Copy link
Owner

mumoshu commented Jan 10, 2022

@sharjilk Great! Thanks again for your contribution. Closing as resolved 🎉

@mumoshu mumoshu closed this as completed Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants