Onboarding Software to Backstage
Creating a software component
Let’s add an entity of your own to the catalog; preferably an existing service owned by your team.
-
In the code repository for the service, create a new file
catalog-info.yaml
at the repository’s root. -
Paste the following contents:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: replace-me
description: Replace me with a real description.
tags:
- go
- website
spec:
type: service
lifecycle: production
owner: your-team
-
Update
metadata.name
- with a version of your service’s name that only includes lowercase, alpha-numeric characters and dashes -
Update
metadata.description
- a human-readable description of your service -
Update
spec.owner
- with your team’s name
💡 If your company already has metadata files in a different format, you can write a catalog processor to ingest those and translate to Backstage’s entity format.
-
Commit and push this file up to your version control system and ensure it’s available in the default branch (e.g. main or master).
-
Navigate to this
catalog-info.yaml
file in the web interface of your VCS and copy the URL. e.g.https://github.com/backstage/backstage/blob/master/catalog-info.yaml