fix(PingSource): remove annotation based conversion logic#5233
Conversation
- v1beta1 will not guaranteed to be roundtrip-able (in the case that jsonData cannot be marshalled into json, e.g. jsonData="hello"), but the cloudevent on the wire stays the same. - duckv1.SourceSpec, TimeZone, Schedule will be populated when called by v1beta1 clients - object with v1beta2-specific features (dataBase64, contentType beyond `application/json`) will not populate jsonData field when converted to v1beta1.
|
@lionelvillard pls take a look, thanks |
Codecov Report
@@ Coverage Diff @@
## release-0.21 #5233 +/- ##
===============================================
Coverage ? 81.56%
===============================================
Files ? 294
Lines ? 8365
Branches ? 0
===============================================
Hits ? 6823
Misses ? 1138
Partials ? 404 Continue to review full report at Codecov.
|
|
@lionelvillard this PR needs to be back-ported as well, thanks! |
|
/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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry-picked from #5153
Related issue: #5137
Proposed Changes
application/json) will not populate jsonData field when converted to v1beta1.Release Note
Docs