kubebuilder
kubebuilder copied to clipboard
Documentation request: e2e test with webhook
trafficstars
Hi Kubebuilder developers! I am looking for an example of an e2e test that also includes adding the webhook. We have some logic that is set in the webhook, and would like it to be there for the e2e test. An example adding to the testEnv might look like this:
https://github.com/kubernetes-sigs/jobset/blob/cfd9d7ce33da7599cdbd2590884481a99403afb8/test/integration/webhook/suite_test.go#L63-L70
And maybe that is close, but I wasn't able to get something similar working in the e2e test (and maybe I just need a subset, or a way to edit the cfg object generated?) It would be great if the docs here could provide an example like this. Thank you!