Skip to content

Commit

Permalink
[release-1.11] Adding description for the built-in event types of our…
Browse files Browse the repository at this point in the history
… duck sources (#7276)

Adding description for the buildin event types of our duck sources

Signed-off-by: Matthias Wessendorf <[email protected]>
Co-authored-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
knative-prow-robot and matzew authored Sep 22, 2023
1 parent 479724b commit 6a695cb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
32 changes: 25 additions & 7 deletions config/core/resources/apiserversource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,33 @@ metadata:
app.kubernetes.io/version: devel
app.kubernetes.io/name: knative-eventing
annotations:
# TODO add schemas and descriptions
# TODO add schemas
registry.knative.dev/eventTypes: |
[
{ "type": "dev.knative.apiserver.resource.add" },
{ "type": "dev.knative.apiserver.resource.delete" },
{ "type": "dev.knative.apiserver.resource.update" },
{ "type": "dev.knative.apiserver.ref.add" },
{ "type": "dev.knative.apiserver.ref.delete" },
{ "type": "dev.knative.apiserver.ref.update" }
{
"type": "dev.knative.apiserver.resource.add",
"description": "CloudEvent type used for add operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.resource.delete",
"description": "CloudEvent type used for delete operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.resource.update",
"description": "CloudEvent type used for update operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.ref.add",
"description": "CloudEvent type used for add operations when in Reference mode"
},
{
"type": "dev.knative.apiserver.ref.delete",
"description": "CloudEvent type used for delete operations when in Reference mode"
},
{
"type": "dev.knative.apiserver.ref.update",
"description": "CloudEvent type used for update operations when in Reference mode"
}
]
name: apiserversources.sources.knative.dev
spec:
Expand Down
7 changes: 5 additions & 2 deletions config/core/resources/pingsource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ metadata:
app.kubernetes.io/version: devel
app.kubernetes.io/name: knative-eventing
annotations:
# TODO add schemas and descriptions
# TODO add schema
registry.knative.dev/eventTypes: |
[
{ "type": "dev.knative.sources.ping" }
{
"type": "dev.knative.sources.ping",
"description": "CloudEvent type for fixed payloads on a specified cron schedule"
}
]
name: pingsources.sources.knative.dev
spec:
Expand Down

0 comments on commit 6a695cb

Please sign in to comment.