-
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
Install kustomize if not present #1430
Conversation
Hi @toonsevrin. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
I am now testing this in a virtual machine. /hold |
✔️ I've tested this on fresh ubuntu vms. It seems to work as expected. I tested creating and installing an API with and without kustomize in the PATH. Without kustomize in the path, "go get kustomize" is ran, with kustomize nothing is ran. Please confirm (and perhaps test some more paths) and merge. |
/hold cancel |
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.
The approach is the same as the one used for controller-gen
currently. In that sense it looks ok.
golden_script.sh
needs to be run to update the Makefile
s under the testdata
directory in order to pass the Travis check.
@mengqiy @DirectXMan12 what do you think of this?
All right I'll run goldenscript and squash. |
@Adirio can you or someone else generate the golden_script for me? I receive the following error during the test: go test ./pkg/... ./cmd/... -coverprofile cover.out
...
2020/03/12 17:33:22 failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory
... Not sure where it gets the idea that I have a /usr/local/kubebuilder folder :P EDIT: I'm installing the latest etcd and the kubernetes api binaries in this directory just to get this to work quickly... |
Sorry it is I can't run it because I'm on Windows. |
@Adirio no worries, I've started a new vm with 4 times the RAM. Should complete this time. As I'm on 1Mbps expect this to take a while 😆 |
@Adirio looks like an unexpected exception with the test occured, are you able to restart it? |
@toonsevrin: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
Close the PR and reopen it. |
/ok-to-test |
Hi @toonsevrin, (For the next times) c/c @Adirio |
Hi @toonsevrin, Great contribution. Your solution for me make totally sense and you are following the current design/approach that is already applied for another dependence. You just need squash the commits for we are able to do it. Could you please check it? HI @Adirio, It does not change the design and etc. Do you see any objection/reason for we not move forward here? |
/lgtm cancel Reason: Missing squash the commits. |
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.
Just missing squash the commits.
Otherwise, I do not see any reason we do not move forward with this solution. All shows fine.
#1371 suggested to check for the dependency instead of installing it. One of the approaches should be followed by I'm not sure which of them feels better. Will keep the discussion over there. |
/hold until #1371 discussion is settled |
@camilamacedo86 squashed 🎉 @Adirio Imo the kustomize dependency should automatically be installed just like any other internal dependency (kustomize is no longer used by developers as they can |
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.
It shows great for me.
Tested locally well.
Well done 👍
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
Let's see what do the owners think and we can remove the |
/lgtm Sorry for the delay. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, mengqiy, toonsevrin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Resolves #1426
As long as the kustomize binary is already present in the PATH, the makefile behavior will be identical to before this patch (See the which statement). In my opinion this is perfect backwards compatibility and this patch should be included in v2.
Note that the test
continuous-integration/travis-ci/pr
will fail due to the Makefile being changed.Notes: