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
Add a version command or option to controller-gen
#259
Comments
Yes, this would be helpful, since I encountered a similar issue with kubebuilder :kubernetes-sigs/kubebuilder#909. I could try to work on this if help is needed. |
/kind feature You can more-or-less copy the ldflags/git approach from other projects or bits of kubernetes. If you've done something similar before, or are willing to do a bit of bash/makefile spelunking, this is a reasonable starter issue. |
/priority backlog |
/help |
@DirectXMan12: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
(we'd probably add this as a |
Hi @DirectXMan12, if help is needed, I am willing to work on this issue, any more hints on this? |
On further thought, since we're generally go-installing, we probably need to make use of https://golang.org/pkg/runtime/debug/#BuildInfo to grab the version info at runtime. Then we can print that out. |
/assign @dlespiau |
It would be great to know which version of
controller-gen
we're using in our kubebuilder projects to better diagnose errors and help the community.Please add a
version
command or--version
or-v
flags to controller-gen to help us with this. Thanks a ton!The text was updated successfully, but these errors were encountered: