-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate tekton to the cloudevents sdk v2
While I was here, I also refactored some of the CloudEvents integration, some major points: you now send spec version 1.0 formatted events ID is not the task run name, this was a bad idea if you want to send more than one event for that run. The task run name is now used as the subject. ID is now a UUID. The event that is created for sending is only created once, and then used for all deliveries. This means that all subscribers get the same event content and ID. The event payload is marshaled inside the Event object. I show examples in the code and tests of how to set and get the payload as your custom struct. Removed a lot of the layers passing clients and event components around. Better to build the event and then call send on the client directly. This deleted a lot of code that was doing many things, like create an event, and then attempt to send it. Signed-off-by: Scott Nichols <snichols@vmware.com>
- Loading branch information
1 parent
212e3d4
commit fbde4aa
Showing
146 changed files
with
4,654 additions
and
6,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.