-
Notifications
You must be signed in to change notification settings - Fork 6
/
catalog-info-gitlab.yaml
29 lines (29 loc) · 995 Bytes
/
catalog-info-gitlab.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
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: {{cookiecutter.name | jsonify}}
description: {{cookiecutter.description | jsonify}}
annotations:
# github.com/project-slug: {{cookiecutter.destination.owner + "/" + cookiecutter.destination.repo}}
backstage.io/techdocs-ref: url:{{"https://" + cookiecutter.destination.host + "/" + cookiecutter.destination.owner + "/" + cookiecutter.destination.repo}}
spec:
type: service
lifecycle: experimental
owner: {{cookiecutter.owner | jsonify}}
providesApis:
- {{cookiecutter.name | jsonify}}-api
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: {{cookiecutter.name | jsonify}}-api
description: {{cookiecutter.description | jsonify}} RESTful API
tags:
- rest
spec:
type: openapi
lifecycle: experimental
owner: {{cookiecutter.owner | jsonify}}
definition:
$text: {{"https://gitlab.cc.columbia.edu/" + cookiecutter.destination.owner + "/" + cookiecutter.destination.repo}}