google / knative-gcp

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

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

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-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% 58.6% 0.5
zhongduo commented 3 years ago

/lgtm

nlopezgi commented 3 years ago

/approve

knative-prow-robot commented 3 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nlopezgi, 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.18/OWNERS)~~ [nlopezgi] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment