-
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
✨ add kubebuilder/tooling and controller setup to use binaries from the project bin (go/v3-alpha) #1711
✨ add kubebuilder/tooling and controller setup to use binaries from the project bin (go/v3-alpha) #1711
Conversation
Hi @DirectXMan12, @gabbifish, @pwittrock, We agreed just push bug fixes to v2+. However, it is not a breaking change and would allow v2 plugin projects able to work with the kubebuilder binary if it wasn't installed from a tarball. So, are you ok with we do this change in the v2+? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
I ran make test
as well and all your introduced changes look good! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment inline, plus as was pointed out in the meeting, we should verify the downloaded tarball.
/hold re: pointing at "master", we can bcckport the script to a stable version if need-be |
b3e1063
to
a846b51
Compare
a846b51
to
d4606ba
Compare
d4606ba
to
2375fbf
Compare
c6a11b0
to
6a8c700
Compare
/test pull-kubebuilder-e2e-k8s-1-17-0 |
I'd prefer a runnable Go program to a shell script, I think (there's just so many things that can go wrong in a shell script, with a That being said, I think I put on one of these scripts that we should probably install to GOBIN, and then symlink the particular version to bin/whatever or something, so we still share versions when appropriate -- having 27 copies of the same binary in If we want that to live in a separate module in controller-runtime, that's fine. If we want to migrate the kubernetes release branch to controller-runtime, and re-target the cloud build scripts, that's also probably fine (I don't really care strongly either way). |
In general I agree.
The library API could have "desired version" parameters that gets compared to the versions of GOBIN/PATH binaries, and will install any of those binaries locally if its version does not match the desired version.
I'd prefer that, so there's a canonical way of installing envtest deps.
Ultimately I'd like to do that as well, especially if c-r has the installation library you mentioned above. |
6a8c700
to
a434f1b
Compare
a434f1b
to
085ad46
Compare
Hi @estroz @DirectXMan12, With the latest alpha controller-runtime release, we could simplify its solution. See that it was updated/chaged. Regards the suggestions made by @estroz:
It might make it harder to keep maintained but I am OK with. However, we have. current problems to solve and the suggested approach will take a while to be achieved. In this way, I think that we should do: 1 - Move forward with this solution to solve the current problems in KB WDYT? |
506d992
to
678bf78
Compare
678bf78
to
470c3ad
Compare
Common install path and library suggestions: kubernetes-sigs/controller-runtime#1234 |
@camilamacedo86: PR needs rebase. 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. |
Closing it a favour to kubernetes-sigs/controller-runtime#1234 and kubernetes-sigs/controller-runtime#1300 as discussed in the bug triage meeting. |
Description
v2.3.1
Motivation