-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce NewContext
, deprecate NewImplFull
.
#2222
Conversation
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.
Codecov Report
@@ Coverage Diff @@
## main #2222 +/- ##
==========================================
- Coverage 63.91% 63.88% -0.04%
==========================================
Files 220 220
Lines 9525 9536 +11
==========================================
+ Hits 6088 6092 +4
- Misses 3165 3169 +4
- Partials 272 275 +3
Continue to review full report at Codecov.
|
The code style failure is a timeout, the serving downstream failure is a flake, and codecov/project is just always red. If nothing else fails, then this should be RFAL 👀 |
/retest MetricsExporter flake... |
Same test 🙃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor, n3wscott The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Our generated
NewImpl
methods have long takencontext.Context
, but despite many iterations the forms we expose from ourcontroller
package never have. This change contains several elements:NewContext
method that takescontext.Context
in addition to the currentNewImplFull
signature.NewContext
instead of the deprecatedNewImpl
from our generated controller code.NewContext
from all our webhook reconcilers.tracker.Interface
oncontroller.Impl
now that we can extract the tracker lease fromctx
(for use with Create a new ListableTracker ctor taking a tracker.Interface eventing#5651, and Have the addressable resolver take a tracker. #2220 downstream)/kind cleanup
Release Note
Docs
/assign @n3wscott