Clarify usage of source
for CDEvents
#29
Labels
cloudevents
Specification - CloudEvents Binding
roadmap
Items on the roadmap
spec
Specification - Core CDEvents
Milestone
CDEvents include a
source
field that matches thesource
in CloudEvents (type:URI-reference
).source
+id
should be globally unique, which means thatsource
should identify the producer of events using aURI-reference
.I'm using Tekton events as an example of the possible options.
In Tekton today the source looks like:
However this is problematic because the source is different for every subject, which makes filtering events harder.
An alternative could be to use in the source the website of the platform that produces events, e.g.
That means that all events generated by any instance of Tekton would have the same source though.
I'm not aware of any standard way of identifying an instance of an application via an URI.
We could define something like
<org-namespace>/tekton/<instance-descriptor>
:This could identify the
dogfooding
Tekton instance used by the Tekton community.Thoughts?
The text was updated successfully, but these errors were encountered: