Skippable test scaffolding on create (api|webhook)
#4509
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
create (api|webhook)
#4509
What do you want to happen?
Context
Giving the ability to skip test creation would allow users who have diverged from the original test scaffolding without facing the error when creating new APIs.
Currently, it seems like the
create api|webhook
commands require thetest/e2e/e2e_test.go
to exist and they will also create a<kind>_test.go
in every call.When creating a new webhok after having moved the
test/e2e/e2e_test.go
files somewhere else, this error is shown:The current workaround is to create an empty file in that location, just to
kubebuilder
is happy enough to run the command.Ps: I know the idea here is to create a plugin for kubebuilder but I don't quite have that need yet. It would be nice if I could just keep using the default scaffolding without having to have empty files laying around.
Proposal
My proposal is to create a
--skip-test-scaffolding
flag forcreate (api|webhook)
calls.Extra Labels
No response
The text was updated successfully, but these errors were encountered: