Skip to content
#

k8s-sig-api-machinery

Here are 21 public repositories matching this topic...

DirectXMan12
DirectXMan12 commented Jun 29, 2020

The straightforward way to do webhook testing with envtest looks something like

// in BeforeSuite
env := envtest.Environment{ /* set directory paths, etc */}
env.Start()

// in the contents of a test file
BeforeEach(func() {
  go mgr.Start(stopCh)
})
AfterEach(func() { close(stopCh) })

It("should do stuff with the webhook", func() {
  Expect(cl.Create(ctx, myObj)).To(Explode(
DirectXMan12
DirectXMan12 commented Apr 27, 2020

#317 introduces support for a pattern we generally don't recommend: pointers as map values. This is mainly for a few legacy use cases that folks want to support, but I think we generally want to warn people that this isn't a pattern that we/the kube API conventions generally suggest/support.

We probably want something that looks a lot like our error reporting system, but works adds a "non-fata

Improve this page

Add a description, image, and links to the k8s-sig-api-machinery topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the k8s-sig-api-machinery topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.