-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Upgrade ginkgo to v2 for go/v4 plugin #2532
Comments
We checked in the review of #2522 that changes in the scaffolds are required and that the previous code will not work with ginkgo v2 so it is a breaking change and then we cannot move forward in go/v3. We will need a go/v4 plugin to add this one. See that the scaffolds require to be changed with the following migrations.
Also, you can check the policy: https://github.com/kubernetes-sigs/kubebuilder/blob/master/VERSIONING.md#introducing-changes-to-plugins |
Besides the ginkgo upgrade is considered a breaking change because requires small changes Kubebuilder has k8s and controller-runtime as a dependency. Therefore, k8s 1.25 made this change and we have a PR open to introducing it in controller-runtime (see kubernetes-sigs/controller-runtime#1977). In this way, we need to be aligned with both and the best approach seems to ensure that Kubebuilder tests as go/v3 and go/v4-alpha are all updated to using ginkgo v2. On top of that following further details were provided by @jakobmoellersap: With the Migration of Gingko in controller-runtime (see kubernetes-sigs/controller-runtime#1977) we will also have the chance to migrate our test coding as well as our templated scaffolds to gingko v2. To make sure that we do not break incompatibility, we especially need to look at the migration guide in https://onsi.github.io/ginkgo/MIGRATING_TO_V2 Since CR is upgrading this also means we have to react to the resulting breaking changes The PR removes two helpers in pkg/envtest/printer that were used with ginkgo v1. Since you can't use both versions at the same time, this isn't relevant though. |
/assign |
We update the CLI: #2876 |
Hi @jakobmoellersap, Are you able to help us update the scaffolds by doing the same changes in the scaffolds so we are able to do a new release with this change? |
Yup, was out the last few days. Will submit a draft today. |
Done. |
What do you want to happen?
I just submitted a PR for upgrading ginkgo to
v2
, see #2522After some discussions we found it's a broken change for
go/v3
.So I created this issue for tracking the upgrade and intend to be added to v4 milestone.
Extra Labels
No response
The text was updated successfully, but these errors were encountered: