google / knative-gcp

GCP event implementations to use with Knative Eventing.
https://github.com/knative/eventing
Apache License 2.0
159 stars 75 forks source link

backport release-0.19: Check if spec.retry is nil before dereferencing it. (#2052) #2145

Closed tommyreddad closed 3 years ago

tommyreddad commented 3 years ago

Fixes #2051

Proposed Changes

Release Note

- 🐛 Fixed a potential nil pointer dereference when using a GCP Broker.
knative-prow-robot commented 3 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tommyreddad

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: - ~~[OWNERS](https://github.com/google/knative-gcp/blob/release-0.19/OWNERS)~~ [tommyreddad] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
knative-metrics-robot commented 3 years ago

The following is the coverage report on the affected files. Say /test pull-google-knative-gcp-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/trigger/trigger.go 58.0% 67.6% 9.6
tommyreddad commented 3 years ago

/retest

zhongduo commented 3 years ago

/lgtm

zhongduo commented 3 years ago

/hold This issue is already fixed by the latest master code, can you make sure the logic are the same?

tommyreddad commented 3 years ago

I cherry-picked the commit, it is the same logic. You can check the original to see it is the same: https://github.com/google/knative-gcp/pull/2052

zhongduo commented 3 years ago

/unhold

zhongduo commented 3 years ago

/retest

tommyreddad commented 3 years ago

/retest

tommyreddad commented 3 years ago

/retest

zhongduo commented 3 years ago

/lgtm

zhongduo commented 3 years ago

/retest

tommyreddad commented 3 years ago

/retest