Skip to content

Commit 4ff75fb

Browse files
committed
Spec for sources
Signed-off-by: Ali Ok <aliok@redhat.com>
1 parent 3cecc9b commit 4ff75fb

File tree

3 files changed

+123
-24
lines changed

3 files changed

+123
-24
lines changed

backends/pkg/eventmesh/v1/api.gen.go

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backends/pkg/eventmesh/v1/server.gen.go

Lines changed: 26 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specs/event-mesh-v1.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,66 @@ components:
136136
- annotations
137137
- group
138138
- kind
139+
Source:
140+
type: object
141+
description: Source is a simplified representation of a Knative Eventing Source that is easier to consume by the Backstage plugin.
142+
properties:
143+
namespace:
144+
type: string
145+
description: Namespace of the source.
146+
format: string
147+
example: my-namespace
148+
name:
149+
type: string
150+
description: Name of the source.
151+
format: string
152+
example: my-source
153+
uid:
154+
type: string
155+
description: UID of the source.
156+
format: string
157+
x-go-name: UID
158+
example: 1234-5678-9012
159+
labels:
160+
type: object
161+
additionalProperties:
162+
type: string
163+
format: string
164+
description: Labels of the source.
165+
example: { "key": "value" }
166+
annotations:
167+
type: object
168+
additionalProperties:
169+
type: string
170+
format: string
171+
description: Annotations of the source.
172+
example: { "key": "value" }
173+
providedEventTypes:
174+
type: array
175+
items:
176+
type: string
177+
format: string
178+
description: List of EventType types provided by the source.
179+
example: [ "some-event-type" ]
180+
group:
181+
type: string
182+
description: Kubernetes API group of the source, without the version.
183+
format: string
184+
example: sources.knative.dev
185+
kind:
186+
type: string
187+
description: Kubernetes API kind of the source.
188+
format: string
189+
example: ApiServerSource
190+
required:
191+
- namespace
192+
- name
193+
- uid
194+
- labels
195+
- annotations
196+
- providedEventTypes
197+
- group
198+
- kind
139199
EventType:
140200
type: object
141201
description: EventType is a simplified representation of a Knative Eventing EventType that is easier to consume by the Backstage plugin.
@@ -233,7 +293,14 @@ components:
233293
$ref: '#/components/schemas/Subscribable'
234294
description: Subscribables is a list of all subscribables in the cluster.
235295
minItems: 0
296+
sources:
297+
type: array
298+
items:
299+
$ref: '#/components/schemas/Source'
300+
description: Sources is a list of all sources in the cluster.
301+
minItems: 0
236302
required:
237303
- eventTypes
238304
- brokers
239305
- subscribables
306+
- sources

0 commit comments

Comments
 (0)