kubebuilder
kubebuilder copied to clipboard
⚠️ migrate kubebuilder and scaffolding to ginkgo/v2
This PR makes sure to migrate kubebuilder and the corresponding scaffolding to gingko/v2. Currently the entire test suite of kubebuilder itself is migrated, however there are 2 things missing:
- [ ] Scaffolding needs to be updated (see https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/plugins/golang/v3/scaffolds/internal/templates/controllers/controller_suitetest.go#L134) but its a breaking change and needs to go into v4-alpha scaffolding which does not yet exist
- [ ] gingko CLI is recommended as test execution tool (especially for parallel suites) and we would have to adjust Makefiles for that, I want to take this opportunity and ask what our POV on switching from go test is
Fixes https://github.com/kubernetes-sigs/kubebuilder/pull/2875
Hi @jakobmoellersap. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
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.
Just saw that there is a previous pull for this in https://github.com/kubernetes-sigs/kubebuilder/pull/2522 that got closed. Also leaving this in draft until we have dedicated v4 scaffolding
/ok-to-test
I would suggest to even open up this PR normally (to upgrade kubebuilder and its test) and then a follow-up PR for the scaffolding. That would make it a bit easier to maintain / review / plan. WDYT @camilamacedo86 ?
Hi @jakobmoellersap that is fine, you can work on this as normal PR. No problem at all.
we can also:
/ok-to-test
/test-all
/retest
/test pull-kubebuilder-e2e-k8s-1-19-16
/cc @camilamacedo86
I will pick up the ginkgo v2 scaffolding migration next
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: camilamacedo86, jakobmoellersap, varshaprasad96
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [camilamacedo86]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/lgtm
Receive 2 approvals