fix(PingSource): remove annotation based conversion logic#5153
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5153 +/- ##
==========================================
+ Coverage 83.41% 84.01% +0.59%
==========================================
Files 283 283
Lines 7955 7933 -22
==========================================
+ Hits 6636 6665 +29
+ Misses 947 897 -50
+ Partials 372 371 -1
Continue to review full report at Codecov.
|
|
/test pull-knative-eventing-reconciler-tests |
1 similar comment
|
/test pull-knative-eventing-reconciler-tests |
|
it would be great to get this backported to v0.22 & v0.21 given #5137 |
- 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.
|
/test pull-knative-eventing-reconciler-tests |
|
BTW, since there is no need for the annotations anymore, what about removing them when running the post-install job? (See WIP: #5008) |
yes we can do it. |
|
@eclipselu Is there anything else to do here? |
The only question is that if we return an error like discussed, while it makes sense in some way, it still does not fix the original issue (duckv1.SourceSpec isn't populated for non-storage versions). The most impacted is kn, which uses v1alpha2 source client, list/describe will both fail. Specifically for |
|
/test pull-knative-eventing-unit-tests |
|
/test pull-knative-eventing-reconciler-tests |
|
The following is the coverage report on the affected files.
|
|
Much better! Thanks @eclipselu /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 |
|
/test pull-knative-eventing-reconciler-tests |
|
Will be back-ported to 0.22 and 0.21. |
Fixes #5137
Proposed Changes
application/json) will not populate jsonData field when converted to v1beta1.Release Note
Docs