Upgrading to CloudEvents 1.0#2157
Conversation
|
/assign @nachocano mind taking a look, dude ? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew 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 |
|
The following is the coverage report on the affected files.
|
|
hrm... integratation test ... |
|
|
||
| const ( | ||
| // V03TTLAttribute is the name of the CloudEvents 0.3 extension attribute used to store the | ||
| // V1TTLAttribute is the name of the CloudEvents 0.3 extension attribute used to store the |
| event.SetSource("/mycontext") | ||
| event.SetID("A234-1234-1234") | ||
| event.SetExtension("comExampleExtension", "value") | ||
| event.SetExtension("comexampleextension", "value") |
There was a problem hiding this comment.
just jotting this down here, but 0.3 used to default encoding, and now you have to manually set it, might want to add that in here as well?
| event := cloudevents.NewEvent(cloudevents.VersionV02) | ||
| event := cloudevents.NewEvent(cloudevents.VersionV1) | ||
| event.SetID(uuid.New().String()) | ||
| event.SetType(common.GCEventType) |
There was a problem hiding this comment.
These should also set the encoding?
|
I do wonder if these are failing because the encoding is not set? |
|
sorry for the delay @matzew ... thanks for doing this!
|
|
I was going to update the docs, yes! and let me test w/ 0.3 thanks for the pointers, @nachocano ! 🤗 |
|
I would recommend that we deprecate 0.3 properly, so make sure both work, then deprecate 0.3 and then remove it. |
|
makes sense!
I will update it next week!
On Fri 8. Nov 2019 at 14:57, Ahmed Abdalla ***@***.***> wrote:
I would recommend that we deprecate 0.3 properly, so make sure both work,
then deprecate 0.3 and then remove it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2157?email_source=notifications&email_token=AABGPTX4BVBBA4A6QCYJIK3QSVV5RA5CNFSM4JKE75N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDSFPVI#issuecomment-551835605>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABGPTULP7K6G7CDUHIJF6LQSVV5RANCNFSM4JKE75NQ>
.
--
Sent from Gmail Mobile
|
| delete(originalV3.Extensions, ttlKey) | ||
| event.Context = originalV3 | ||
| delete(originalV1.Extensions, ttlKey) | ||
| event.Context = originalV1 |
There was a problem hiding this comment.
Is there are reason why we bump all events to V1? Can't broker/trigger be just pass through?
|
/retest |
|
@matzew: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
|
||
| // Remove the TTL attribute that is used by the Broker. | ||
| originalV3 := event.Context.AsV03() | ||
| originalV1 := event.Context.AsV1() |
There was a problem hiding this comment.
Please revert this file as this has been now fixed correctly.
/hold
|
|
||
| const ( | ||
| // V03TTLAttribute is the name of the CloudEvents 0.3 extension attribute used to store the | ||
| // V1TTLAttribute is the name of the CloudEvents 1.0 extension attribute used to store the |
There was a problem hiding this comment.
Revert this file too. This has been now fixed correctly. refer to #2244
|
/close |
|
@matzew: Closed this PR. DetailsIn response to this:
Instructions 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. |
Proposed Changes
Release Note