pkg/client/injection
Matt Moore 9c7fd8e14f
Introduce `NewContext`, deprecate `NewImplFull`. (#2222)
* Introduce `NewContext`, deprecate `NewImplFull`.

Our generated `NewImpl` methods have long taken `context.Context`, but despite many iterations the forms we expose from our `controller` package never have.  This change contains several elements:
1. Expose a new `NewContext` method that takes `context.Context` in addition to the current `NewImplFull` signature.
2. Call `NewContext` instead of the deprecated `NewImpl` from our generated controller code.
3. Call `NewContext` from all our webhook reconcilers.

* Add a Tracker to controller.Impl to cut down on downstream boilerplate.
2021-08-21 14:00:34 -07:00
..
apiextensions Introduce `NewContext`, deprecate `NewImplFull`. (#2222) 2021-08-21 14:00:34 -07:00
client update boilerplate date (#2134) 2021-05-28 13:21:29 -07:00
ducks/duck update boilerplate date (#2134) 2021-05-28 13:21:29 -07:00
informers/factory update boilerplate date (#2134) 2021-05-28 13:21:29 -07:00
kube Introduce `NewContext`, deprecate `NewImplFull`. (#2222) 2021-08-21 14:00:34 -07:00