-
Notifications
You must be signed in to change notification settings - Fork 20
/
backstage-catalog.yaml
239 lines (239 loc) · 6.06 KB
/
backstage-catalog.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# This file contains some sample data to model the services which are deployed with the emojivoto demo
# from linkerd into the Backstage Software Catalog.
apiVersion: backstage.io/v1alpha1
kind: System
metadata:
name: faces
namespace: faces
description: The Faces Demo
links:
- url: https://github.com/BuoyantIO/faces-demo
title: Faces Demo on GitHub
annotations:
backstage.io/source-location: url:https://github.com/BuoyantIO/faces-demo
github.com/project-slug: BuoyantIO/faces-demo
spec:
owner: user:default/guest
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: faces-gui
description: The Faces GUI
namespace: faces
annotations:
backstage.io/kubernetes-label-selector: service=faces-gui
backstage.io/kubernetes-namespace: faces
github.com/project-slug: BuoyantIO/faces-demo
links:
- url: http://localhost/faces/
title: Faces GUI
spec:
type: website
lifecycle: production
owner: user:default/guest
system: faces
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: face
description: Face workload
namespace: faces
annotations:
backstage.io/kubernetes-label-selector: service=face
backstage.io/kubernetes-namespace: faces
backstage.io/source-location: url:https://github.com/BuoyantIO/faces-demo
github.com/project-slug: BuoyantIO/faces-demo
links:
- url: http://localhost/faces/
title: Faces GUI
spec:
type: service
lifecycle: production
owner: user:default/guest
system: faces
providesApis: [face-api]
consumesApis: [smiley-api, color-api]
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: smiley
description: The smiley workload
namespace: faces
annotations:
backstage.io/kubernetes-label-selector: service=smiley
backstage.io/kubernetes-namespace: faces
github.com/project-slug: BuoyantIO/faces-demo
links: []
spec:
type: service
lifecycle: production
owner: user:default/guest
system: faces
providesApis: [smiley-api]
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: color
description: The color workload
namespace: faces
annotations:
backstage.io/kubernetes-label-selector: service=color
backstage.io/kubernetes-namespace: faces
github.com/project-slug: BuoyantIO/faces-demo
links: []
spec:
type: service
lifecycle: production
owner: user:default/guest
system: faces
providesApis: [color-api]
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: face-api
namespace: faces
description: Retrieve a Face cell
spec:
type: openapi
lifecycle: production
owner: user:default/guest
system: faces
definition: |
openapi: "3.0.0"
info:
version: 1.5.0
title: Face API
license:
name: Apache2
servers:
- url: http://face.faces/
paths:
/cell:
get:
summary: Retrieve a Face cell
parameters:
- in: query
name: row
required: true
schema:
type: integer
description: The row number of the desired cell, starting from 0
- in: query
name: col
required: true
schema:
type: integer
description: The column number of the desired cell, starting from 0
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: smiley-api
namespace: faces
description: Retrieve a smiley for a Face cell
spec:
type: openapi
lifecycle: production
owner: user:default/guest
system: faces
definition: |
openapi: "3.0.0"
info:
version: 1.5.0
title: Smiley API
license:
name: Apache2
servers:
- url: http://smiley.faces/
paths:
/center:
get:
summary: Retrieve a smiley for a central Face cell
parameters:
- in: query
name: row
required: true
schema:
type: integer
description: The row number of the desired cell, starting from 0
- in: query
name: col
required: true
schema:
type: integer
description: The column number of the desired cell, starting from 0
/edge:
get:
summary: Retrieve a smiley for an edge Face cell
parameters:
- in: query
name: row
required: true
schema:
type: integer
description: The row number of the desired cell, starting from 0
- in: query
name: col
required: true
schema:
type: integer
description: The column number of the desired cell, starting from 0
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: color-api
namespace: faces
description: Retrieve a color for a Face cell
spec:
type: openapi
lifecycle: production
owner: user:default/guest
system: faces
definition: |
openapi: "3.0.0"
info:
version: 1.5.0
title: Color API
license:
name: Apache2
servers:
- url: http://color.faces/
paths:
/center:
get:
summary: Retrieve a color for a central Face cell
parameters:
- in: query
name: row
required: true
schema:
type: integer
description: The row number of the desired cell, starting from 0
- in: query
name: col
required: true
schema:
type: integer
description: The column number of the desired cell, starting from 0
/edge:
get:
summary: Retrieve a color for an edge Face cell
parameters:
- in: query
name: row
required: true
schema:
type: integer
description: The row number of the desired cell, starting from 0
- in: query
name: col
required: true
schema:
type: integer
description: The column number of the desired cell, starting from 0