Skip to content

fix(PingSource): remove annotation based conversion logic#5234

Merged
knative-prow-robot merged 1 commit into
knative:release-0.22from
eclipselu:fix-0.22
Apr 13, 2021
Merged

fix(PingSource): remove annotation based conversion logic#5234
knative-prow-robot merged 1 commit into
knative:release-0.22from
eclipselu:fix-0.22

Conversation

@eclipselu
Copy link
Copy Markdown
Contributor

@eclipselu eclipselu commented Apr 12, 2021

Cherry-picked from #5153
Related issue: #5137

Proposed Changes

  • 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.

Release Note

:bug: duckv1.SourceSpec, TimeZone, Schedule will be populated when called by v1beta1/v1alpha2 clients

Docs

- 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.
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 12, 2021
@google-cla google-cla Bot added the cla: yes Indicates the PR's author has signed the CLA. label Apr 12, 2021
@eclipselu
Copy link
Copy Markdown
Contributor Author

@lionelvillard pls take a look, thanks

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 12, 2021

Codecov Report

Merging #5234 (10bd761) into release-0.22 (8f35d42) will increase coverage by 0.02%.
The diff coverage is 93.33%.

Impacted file tree graph

@@               Coverage Diff                @@
##           release-0.22    #5234      +/-   ##
================================================
+ Coverage         83.98%   84.00%   +0.02%     
================================================
  Files               283      283              
  Lines              7966     7928      -38     
================================================
- Hits               6690     6660      -30     
+ Misses              901      897       -4     
+ Partials            375      371       -4     
Impacted Files Coverage Δ
pkg/apis/sources/v1beta1/ping_conversion.go 94.44% <93.33%> (+7.95%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8f35d42...10bd761. Read the comment docs.

@lionelvillard
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 13, 2021
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 13, 2021
@knative-prow-robot knative-prow-robot merged commit 7c0b477 into knative:release-0.22 Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants