-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog-info.yaml
149 lines (149 loc) · 4.36 KB
/
catalog-info.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: minio-cloudevents-api
title: MinIO CloudEvents API
description: |
Receives MinIO events from a Kafka topic in S3/MinIO format, converts
them to CloudEvents, and sends them to a `cloudevents` topic in Kafka.
annotations:
backstage.io/techdocs-ref: dir:.
spec:
type: asyncapi
lifecycle: experimental
owner: it-reaktion
definition: |
asyncapi: '2.6.0'
id: 'https://github.com/radiorabe/minio-cloudevents-service'
info:
title: MinIO CloudEvents Service
version: v1alpha1
description: |
Receives MinIO events from a Kafka topic in S3/MinIO format, converts
them to CloudEvents, and sends them to a `cloudevents` topic in Kafka.
servers:
production:
url: kafka.service.int.rabe.ch
protocol: kafka
description: Production Kafka Ensemble
security:
- ssl: []
channels:
minioevents:
publish:
message:
$ref: '#/components/messages/S3Event'
cloudevents:
subscribe:
message:
$ref: '#/components/messages/CloudEvent'
components:
messages:
S3Event:
description: |
S3Event as defined by AWS/MinIO, only the fields we are interested in are documented here.
payload:
type: object
properties:
value:
type: object
properties:
Records:
type: array
items:
$ref: '#/components/schemas/S3Record'
CloudEvent:
description: |
Generic CloudEvent containing an S3Event
payload:
type: object
properties:
specversion:
type: string
enum: ['1.0']
type:
type: string
example: 'com.amazonaws.s3.s3:ObjectCreated:Put'
source:
type: string
format: uri
example: 'minio:s3..bucket.name'
id:
type: string
time:
type: string
format: date-time
contenttype:
type: string
example: 'application/json'
data:
$ref: '#/components/schemas/S3Record'
schemas:
S3Record:
description: |
Inner object of a MinIO event. Each S3Event contains several of these and they map to several CloudEvents.
type: object
properties:
responseElements:
type: object
properties:
x-amz-request-id:
type: string
x-amz-id-2:
type: string
awsRegion:
type: string
example: ""
eventSource:
type: string
example: "minio:s3"
eventName:
type: string
example: "s3:ObjectCreated:Put"
eventTime:
type: string
format: date-time
s3:
type: object
properties:
bucket:
type: object
properties:
name:
type: string
example: "bucket.name"
object:
type: object
properties:
key:
type: string
securitySchemes:
ssl:
type: X509
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: minio-cloudevents-service
title: MinIo CloudEvents Service
description: |
Receives MinIO events from a Kafka topic in S3/MinIO format, converts
them to CloudEvents, and sends them to a `cloudevents` topic in Kafka.
annotations:
backstage.io/techdocs-ref: dir:.
github.com/project-slug: radiorabe/minio-cloudevents-service
links:
- url: https://cloudevents.io/
title: CloudEvents
spec:
type: service
lifecycle: experimental
owner: it-reaktion
dependsOn:
- component:default/python-minimal
- component:default/s2i-python-minimal
- component:default/minio
- component:default/kafka
providesApis:
- minio-cloudevents-api