-
Notifications
You must be signed in to change notification settings - Fork 593
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
fix #4986 remove finalizer for pingsource adapter #5002
Conversation
32513c9
to
2ababfc
Compare
/assign @lionelvillard |
2ababfc
to
4ddbae8
Compare
Codecov Report
@@ Coverage Diff @@
## master #5002 +/- ##
==========================================
- Coverage 83.09% 83.04% -0.06%
==========================================
Files 283 283
Lines 7933 7944 +11
==========================================
+ Hits 6592 6597 +5
- Misses 968 971 +3
- Partials 373 376 +3
Continue to review full report at Codecov.
|
The one thing to make sure is, what's our plan for existing pingsources that do have the finalizer. So, after somebody upgrades from say .21 to .22, we need to make sure that the right things happen because there are existing finalizers in play. |
/test pull-knative-eventing-integration-tests |
we can reuse most of this code for cleanup the finalizers: #3836 |
pkg/adapter/mtping/pingsource.go
Outdated
if !ok || pingSource == nil { | ||
return | ||
} | ||
r.mtadapter.Remove(context.Background(), pingSource) |
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.
While you are at it, can you change the signature of Remove
to just pass pingSource (for consistency sake)?
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.
@lionelvillard Thanks for your remind, Done!
@zhaojizhuang this is awesome, thanks! Do you feel like tackling the post-install job in this PR or a separate one? |
@lionelvillard I will create another PR to solve this #5008 |
/retest |
712a3ea
to
446a52b
Compare
446a52b
to
764edf1
Compare
UT updated,cc @lionelvillard |
/test pull-knative-eventing-reconciler-tests |
/retest |
The following is the coverage report on the affected files.
|
/test pull-knative-eventing-reconciler-tests |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lionelvillard 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 |
Relation #4986 remove pingsource adapter's finalizers
Proposed Changes
Release Note
Docs