-
Notifications
You must be signed in to change notification settings - Fork 78
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
Krew broken? error: unknown command "ai" for "kubectl" #46
Comments
Upon further inspection
|
Looks like to fix this
I could make a PR later after investigating your build process |
@sfxworks thanks for the report! i can repro this behavior. It seems like krew is trying to be clever by adding a However, in this case, we are autogenerating the krew manifest using goreleaser (https://github.com/sozercan/kubectl-ai/blob/main/.goreleaser.yaml) If we rename the binary to be just Let me know if you find any other solutions or interested in contributing one of the workarounds. |
If you're intent on using goreleaser, you may want to raise an issue in their PR requesting this feature. It looks like homebrew offers a post install scrip though that could conduct the rename if needed. A third option could be to switch to some prewritten github actions for homebrew and krew that already offer the features you'd need here. Krew is a popular plugin manager for kubectl, so I'd at least note the current post-install step required in the readme. I just adjusted the symlink myself (Mine was a symlink rather than the binary). |
Installs just fine
Though I get an error when calling it
But my other plugins such as the rook-ceph one work fine
The text was updated successfully, but these errors were encountered: