pkg/testing
Matt Moore 0f749ef7d5 This creates a way for clients of the webhook to decorate the request context. (#342)
Clients of webhook can now decorate the request context with additional metadata
via:
```
  ac := &AdmissionController{
    ... // As before
    WithContext: func(ctx context.Context) context.Context {
      // logic to attach stuff to ctx
    }
  }
```

This metadata can then be accessed off of the context in methods like
`SetDefaults` and `Validate` on types registered as webhook handlers.

Fixes: https://github.com/knative/pkg/issues/306
2019-03-26 21:33:51 -07:00
..
doc.go Move the test resource out of `./webhook`. (#32) 2018-07-31 16:02:37 -07:00
inner_default_resource.go This threads a context.Context through the webhook interfaces we expose. (#332) 2019-03-21 10:48:48 -07:00
inner_default_resource_test.go This threads a context.Context through the webhook interfaces we expose. (#332) 2019-03-21 10:48:48 -07:00
register.go Informers / Listers for Duck Types. (#86) 2018-09-24 20:10:20 -07:00
resource.go This creates a way for clients of the webhook to decorate the request context. (#342) 2019-03-26 21:33:51 -07:00
zz_generated.deepcopy.go Webhook creates a patch for all fields generated by Go (#243) 2019-02-06 14:32:40 -08:00