Backstage Catalog (22%)
Notes on backstage catalog.
Topics
- Understand how/why to use Backstage Catalog
- Populate Backstage Catalog
- Using annotations
- Working with manually registered entity locations
- Troubleshooting entity ingestion
- Working with automated ingestion
Understand how/why to use Backstage Catalog
- Catalog allows us to keep track of software within the organization, including the owner and dependencies
Populate Backstage Catalog
Using annotations
Working with manually registered entity locations
-
An
entityis something you want backstage to keep track of. Examples:- your software (Component)
- users/groups
- api
- resources for your application (databases, etc.)
-
entities are stored as
yamlfiles, which look close to the kubernetes manifest formatapiVersion: backstage.io/v1alpha1 kind: Component metadata: name: artist-web labels: example.com/custom: my-label tags: - java links: - url: https://admin.example-org.com title: Admin Dashboard icon: dashboard type: admin-dashboard spec: type: website lifecycle: production owner: artist-relations-team system: public-websites -
catalog-info.yamlfile contains catalog information about the entity and is typically stored next to the application codeapiVersion: backstage.io/v1alpha1 kind: Component metadata: name: backstage description: An example of a Backstage application. # Example for optional annotations # annotations: # github.com/project-slug: backstage/backstage # backstage.io/techdocs-ref: dir:. spec: type: website owner: john@example.com lifecycle: experimental -
How do we tell backstage where the
catalog-info.yamlfile is located?-
Static Configuration: In the
app-config.yaml, add it to thecatalogs.locationssectioncatalog: locations: - type: file target: ../../examples/yahba.yaml - type: file target: ../../examples/entities.yaml -
Template:
-
Entity Analysis: Automatically scan all repos in your Github account or S3 buckets and find all the entity files
-
-
Users
- Represents a user entity
apiVersion: backstage.io/v1alpha1 kind: User metadata: name: ryan spec: profile: displayName: Ryan email: ryan@geekryan.com picture: https://example.com/picture-of-cat.jpg memberOf: [employees, admins, team-a] - Backstage also supports SSO
- Represents a user entity
-
Groups
apiVersion: backstage.io/v1alpha1 kind: Group metadata: name: group_a description: a group spec: type: business-unit profile: displayName: group_a email: group-a@geekryan.com member: [employees, admins, team-a] parent: all_employees children: [group-b]