-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Make Kubebuilder go install
-able
#4079
Comments
Thank you for raise this one. See that you can create a Makefile to download the binary as follows:
We would need to check what are the changes required to do so.
However, we need to share that Windows is not an officially supported env. By last, if you want to push a PR with the required changes to allow go install we can review it and see if we can or not accepted the change. |
I am closing this one. But if anyone have interest to propose a solution to attend this request please feel free to push a PR or a design doc(if that br too big). I am not sure as described above if it would be achievable. |
What do you want to happen?
(I couldn't find any mentions about this, but feel free to close this if it is a duplicate)
I would like to add a target in my Makefile to install
kubebuilder
locally, such that all developers of our operator uses the same version of it.https://book.kubebuilder.io/quick-start#installation doesn't explain how to install a specific version of Kubebuilder (you actually can't just change the version from
latest
inhttps://go.kubebuilder.io/dl/latest/$(go env GOOS)/$(go env GOARCH)
) so I use the Github releases directly:curl -L -o $(KUBEBUILDER) "https://github.com/kubernetes-sigs/kubebuilder/releases/download/$(KUBEBUILDER_VERSION)/kubebuilder_$(GOOS)_$(GOARCH)"
This does work, but I would really prefer to just use
go install
since that is much simpler (doesn't require settingGOOS
andGOARCH
), I can make use of thego-install-tool
helper, and it works even when you don't havecurl
andchmod
installed such as on Windows.By making Kubebuilder
go install
-able the installation steps for all distributions could be changed to use this, since it would be better (in my opinion) than the existing steps. It would also fix the installation steps for Windows in #2940Extra Labels
No response
The text was updated successfully, but these errors were encountered: