Add validation for sources API#1886
Conversation
|
Hi @qiujian16. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
|
@qiujian16 thanks for this PR! Please run |
31cfdff to
1849659
Compare
|
The following is the coverage report on pkg/.
|
|
@lionelvillard thanks, it is fixed |
|
/lgtm @n3wscott for approval. |
| if cs.Sink == nil { | ||
| fe := apis.ErrMissingField("sink") | ||
| errs = errs.Also(fe) | ||
| } else if fe := messagingv1alpha1.IsValidObjectReference(*cs.Sink); fe != nil { |
There was a problem hiding this comment.
This is totally fine for now, since it's just a ref, but we should probably (if not, I'll check) add an issue tracking changing these to use the duck types, which will change these to Destination instead of just an objref.
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, vaikas-google The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #1196
Proposed Changes
Release Note