-
Notifications
You must be signed in to change notification settings - Fork 592
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
use drainer from pkg instead of our own health #3917
Conversation
@@ -102,7 +102,7 @@ func NewHandler(logger *zap.Logger, triggerLister eventinglisters.TriggerLister, | |||
// | |||
// This method will block until ctx is done. | |||
func (h *Handler) Start(ctx context.Context) error { | |||
return h.receiver.StartListen(ctx, health.WithLivenessCheck(health.WithReadinessCheck(h))) | |||
return h.receiver.StartListen(ctx, &handlers.Drainer{Inner: h}) |
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.
I think that you need something that calls Drain()
when ctx.Done()
is closed, see: https://github.com/knative/pkg/blob/673521e55e5b9f081b672c2f97c81c31b1cd2ddc/webhook/webhook.go#L218-L228
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.
ping @vaikas
@vaikas can you enable this feature in |
Codecov Report
@@ Coverage Diff @@
## master #3917 +/- ##
=========================================
Coverage ? 65.77%
=========================================
Files ? 316
Lines ? 11004
Branches ? 0
=========================================
Hits ? 7238
Misses ? 3341
Partials ? 425 Continue to review full report at Codecov.
|
/lgtm Thanks for this one! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: slinkydeveloper, vaikas 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 |
Fixes #3912
Proposed Changes
Release Note
Docs