-
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
Add e2e test to validate webhook conversion from one version to another #4255
Comments
/assign |
Hi @TAM360 I was looking this one it is a little hard to do. |
@camilamacedo86 I am gonna try working on it. |
/assign |
/assign |
@camilamacedo86 with #4449 we can use envtest to test conversion webhooks Is it preferred to be an E2E test? |
IHMO, we should have both in the samples to show how to validate them. |
What do you want to happen?
Description:
To enhance the MultiVersion tutorial, which demonstrates version conversion in webhooks, we created a sample project under: https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/multiversion-tutorial/testdata/project
This sample is auto-generated and updated when running
make generate-docs
as defined here:https://github.com/kubernetes-sigs/kubebuilder/blob/master/Makefile#L82-L84
Code generation and insertion for documentation (including comments) are handled within:
https://github.com/kubernetes-sigs/kubebuilder/tree/master/hack/docs/internal/multiversion-tutorial
Additionally, we have a GitHub Action that runs e2e tests scaffolded by default for this sample project:
kubebuilder/.github/workflows/test-e2e-book.yml
Lines 78 to 106 in e02bbd4
Goal
The objective of this issue is to supplement the tests in the e2e_test.go file by implementing an e2e test that:
By adding this test, we ensure that our examples and scaffolding are validated, providing greater confidence to our users.
Extra Labels
/kind documentation
The text was updated successfully, but these errors were encountered: