Commit Graph

4 Commits

Author SHA1 Message Date
Antoine Cotten 87d4fd2e4f Log type instead of <nil> in injection panic message (#806) 2019-10-26 09:04:35 -07:00
Matt Moore 222dd25986 Migrate pkg to use the knative.dev/pkg import path (#489)
* Manual changes.

* scripted changes.
2019-06-26 13:02:06 -07:00
Scott Nichols afdedebb9e Adding Api Extensions to client injection in pkg. (#449)
* Adding Api Extensions to client injection in pkg.

* Moving to logger.panicf when the thing you ask for is not in the context.
2019-06-07 18:54:40 -07:00
Matt Moore 4c630bb1bb Create a library for Reconciler dependency injection. (#423)
This creates a base library that enables us to leverage the dependency
graph to convey injection dependencies.  Our controllers will start
to get their informers off of a `context.Context` via `fooinformers.Get(ctx)`.

By simply linking `fooinformers` to access the informer in this way, we trigger
a cascade of `init`-time registrations for the informer, and its transitive
dependencies (e.g. shared informer factory, client).

The `ctx` is infused with these informers in `package main` by linking the
appropriate reconcilers (transitively registering everything) and then calling
`sharedmain.Main()` (from `github.com/knative/pkg/injection/sharedmain`).
2019-06-05 07:37:38 -07:00