Implement logic to add checks for conversion webhooks under tests/e2e using kubebuilder:scaffold:e2e-webhooks-checks #4317
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
What do you want to happen?
Under the tests/e2e folder have the checks to validate CA injection for conversion webhooks inject via the kubebuilder marker
kubebuilder:scaffold: e2e-webhooks-checks
, similarly to how we check CA injection for mutating and validating webhooks: https://github.com/kubernetes-sigs/kubebuilder/blob/master/testdata/project-v4/test/e2e/e2e_test.go#L247-L273See an example of how this check can be done at: https://github.com/kubernetes-sigs/kubebuilder/blob/master/testdata/project-v4/test/e2e/e2e_test.go#L247-L273.
Also, for reference, see the code used to inject the tests using the marker:
kubebuilder/pkg/plugins/golang/v4/scaffolds/internal/templates/test/e2e/test.go
Lines 76 to 103 in 40db2b8
Extra Labels
No response
The text was updated successfully, but these errors were encountered: