Closed camilamacedo86 closed 3 weeks ago
Maybe I can help with that /assign
Hi @omerap12, are you working on this ?
Hey @ansh-devs, I started working on it but got stuck and haven't had the time to continue. Feel free to take it over! 😊 /unassign
/assign
I have been looking on this one. The fix is just apply the same code implementation that we have for cronjob to the mulriversion since the multiversion tutorial is the cronjob one with changes to explain how to convert one version to another.
So it is fixed in : https://github.com/kubernetes-sigs/kubebuilder/issues/3878
However, I will raise a new issue for we review the test implementation to see if we could change and enhance it to be more aligned with out scaffolds.
See that I open https://github.com/kubernetes-sigs/kubebuilder/issues/4140 for we review the test implementation and ensure that is a good example and is following our default scaffold.
Description
See that we have the tutorial: https://book.kubebuilder.io/multiversion-tutorial/tutorial All code used in this tutorial came from the sample in: https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/multiversion-tutorial/testdata/project
This sample is tested via the unit-test when we push a PR with changes. Then, note that currently the EnvTest tests to test the reconciliation is commented:
https://github.com/kubernetes-sigs/kubebuilder/blob/master/docs/book/src/multiversion-tutorial/testdata/project/internal/controller/cronjob_controller_test.go#L87-L102
If we uncomment this line we will check in the CI/or when we run
make tests
for this project the following error:Example: https://github.com/kubernetes-sigs/kubebuilder/actions/runs/8844368662/job/24286141139#step:5:474
What we need to do:
Extra Labels
No response