pkg/webhook/certificates
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
..
resources Auto-generate webhook certs with ECDSA for FIPS compliance (#2136) 2021-06-01 04:11:37 -07:00
certificates.go Switch Webhook to ed25519 and expiration of the certificate to seven days (#1998) 2021-01-22 12:11:54 -08:00
certificates_test.go Switch Webhook to ed25519 and expiration of the certificate to seven days (#1998) 2021-01-22 12:11:54 -08:00
controller.go Introduce `NewContext`, deprecate `NewImplFull`. (#2222) 2021-08-21 14:00:34 -07:00