-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Include the missing envtest import. #1417
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
Conversation
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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 understand the commands that are listed here. |
|
Welcome @caiges! |
|
Hi @caiges. 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. |
|
Please follow the CLA instructions posted by the bot: #1417 (comment) /ok-to-test |
|
/check-cla |
|
I signed it |
|
/check-cla |
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.
Hi @caiges,
We use a script called which runs the tool commands to scaffold a mock testdata. To generate it properly, I would suggest using the target make generate. To check it better see the CONTRIBUTING doc.
However, note that this PR is passing in the CI and no changes were made in this mock testadata files.
Also, I was unable to reproduce it using the master. So, IHMO before merging this one we need to check the scenario and add the command to the golden script and see this change reflect in the mock data.
Could you reproduce this one?
PS.: I saw in the issue that you are using go version 1.14 and the kubebuilder was not upgraded to use it. So, you need to use 1.13+ < 1.14.
Files, before being scaffolded, are passed through Off-topic:
I'm using kubebuilder with 1.14 successfully, despite we still have no official support for it in the tests. |
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.
Hi @Adirio,
I could check that the testdata has the import. (E.g https://github.com/kubernetes-sigs/kubebuilder/blob/master/testdata/project-v2-multigroup/controllers/crew/suite_test.go#L28)
and confirmed that we are using the v2 template to do the scaffold
Also, since you could indeed identify that it was removed by mistake here shows that all is ok for we move forward with.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: caiges, camilamacedo86 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 |
|
@camilamacedo86 @DirectXMan12 @Adirio any chance we can get a patch release with this fix, 2.3 was released 25+ days ago and this was fixed 19 days ago and it's kind of a bad first user experience to have to fix the test suite for a missing import. |
|
I am not sure If I have permission to do the releases. I think @mengqiy can help us with. |
|
https://github.com/kubernetes-sigs/kubebuilder/releases/tag/v2.3.1 has been released. |
Fixes #1416
This change includes the addition of a missing import,
"sigs.k8s.io/controller-runtime/pkg/envtest"in the scaffold filecontrollers/suite_test.go.