Knative common packages
Go to file
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
.github Format markdown (#183) 2018-12-03 13:53:25 -08:00
apis Add a GetCondition method to Status (#336) 2019-03-23 11:28:48 -07:00
changeset Grep fix formatting issues (#233) 2019-01-18 14:33:32 -08:00
client Bump k8s deps: 1.11.3 -> 1.12.6 (#310) 2019-03-14 13:48:45 -07:00
configmap Prepare for global resync on ConfigMap changes (#132) 2018-10-18 09:47:28 -07:00
controller Add some helpers to reduce boilerplate in controller binaries. (#335) 2019-03-23 10:57:48 -07:00
hack Bump k8s deps: 1.11.3 -> 1.12.6 (#310) 2019-03-14 13:48:45 -07:00
kmeta Update OnChanged in tracker to support deletion events (#160) 2018-11-05 08:21:35 -08:00
kmp Grep fix formatting issues (#233) 2019-01-18 14:33:32 -08:00
logging Fix the sugared logger usage (#300) 2019-02-28 18:17:38 -08:00
metrics Record metrics if config is nil (#315) 2019-03-11 13:28:43 -07:00
signals Copy pkg/signals verbatim from Serving. (#25) 2018-07-30 13:05:36 -07:00
system add namespaces in pkg (#235) 2019-01-22 21:21:33 -08:00
test Factor out common logic on obtaining the ingress' endpoint. (#334) 2019-03-22 12:35:47 -07:00
testing This creates a way for clients of the webhook to decorate the request context. (#342) 2019-03-26 21:33:51 -07:00
tracker Add an immediate callback for new registrations in Tracker. (#245) 2019-01-28 09:30:36 -08:00
vendor Delete pkg/cloudevents, use cloudevents/sdk-go instead. (#330) 2019-03-19 17:55:46 -07:00
version Add a utility to check against a minimum required version number. (#211) 2019-01-08 10:12:41 -08:00
webhook This creates a way for clients of the webhook to decorate the request context. (#342) 2019-03-26 21:33:51 -07:00
websocket Add a way to check the status of the websocket. (#337) 2019-03-25 08:41:50 -07:00
.gitattributes Update OpenCensus Stackdriver exporter version (#280) 2019-02-20 14:18:46 -08:00
.gitignore Adding more field errors. (#34) 2018-08-02 10:05:37 -07:00
CONTRIBUTING.md Copy over some of the core markdown from serving. (#2) 2018-07-25 10:44:49 -07:00
DEVELOPMENT.md Format markdown (#189) 2018-12-04 14:14:25 -08:00
Gopkg.lock Delete pkg/cloudevents, use cloudevents/sdk-go instead. (#330) 2019-03-19 17:55:46 -07:00
Gopkg.toml Bump k8s deps: 1.11.3 -> 1.12.6 (#310) 2019-03-14 13:48:45 -07:00
LICENSE Initial commit 2018-07-25 10:16:04 -07:00
OWNERS Add a top-level OWNERS file to pkg. (#6) 2018-07-25 10:43:10 -07:00
README.md Format markdown (#189) 2018-12-04 14:14:25 -08:00
code-of-conduct.md Format markdown (#189) 2018-12-04 14:14:25 -08:00

README.md

Knative Common Packages

GoDoc Go Report Card

Knative pkg provides a place for sharing common Knative packages across the Knative repos.

To learn more about Knative, please visit our Knative docs repository.

If you are interested in contributing, see CONTRIBUTING.md and DEVELOPMENT.md.