pkg/webhook/configmaps
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
..
configmaps.go Drop redundant pointers and decoders (#2211) 2021-08-17 02:04:16 -07:00
configmaps_test.go v2 (#1754) 2020-09-29 13:18:29 -07:00
controller.go Introduce `NewContext`, deprecate `NewImplFull`. (#2222) 2021-08-21 14:00:34 -07:00
table_test.go set webhooks OwnerReferences to namespace (#2044) (#2098) 2021-06-10 19:26:43 -07:00