mirror of https://github.com/knative/pkg.git
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 |
||
---|---|---|
.. | ||
doc.go | ||
inner_default_resource.go | ||
inner_default_resource_test.go | ||
register.go | ||
resource.go | ||
zz_generated.deepcopy.go |