catalog-model: add all.yaml to examples

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-05-03 12:18:01 +02:00
parent b703f023f3
commit a4fa64774f
2 changed files with 19 additions and 17 deletions
+7 -17
View File
@@ -203,8 +203,6 @@ catalog:
- Component
- API
- Resource
- Group
- User
- Template
- System
- Domain
@@ -243,7 +241,7 @@ catalog:
# Add a location here to ingest it, for example from a URL:
#
# - type: url
# target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all-components.yaml
# target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all.yaml
#
# For local development you can use a file location instead:
#
@@ -253,33 +251,25 @@ catalog:
# File locations are relative to the current working directory of the
# backend, for example packages/backend/.
# Backstage example components
# Backstage example entities
- type: file
target: ../catalog-model/examples/all-components.yaml
target: ../catalog-model/examples/all.yaml
# Example component for github-actions and TechDocs
- type: file
target: ../../plugins/github-actions/examples/sample.yaml
# Example component for TechDocs
- type: file
target: ../../plugins/techdocs-backend/examples/documented-component/catalog-info.yaml
# Backstage example APIs
- type: file
target: ../catalog-model/examples/all-apis.yaml
# Backstage example resources
- type: file
target: ../catalog-model/examples/all-resources.yaml
# Backstage example systems
- type: file
target: ../catalog-model/examples/all-systems.yaml
# Backstage example domains
- type: file
target: ../catalog-model/examples/all-domains.yaml
# Backstage example templates
- type: file
target: ../../plugins/scaffolder-backend/sample-templates/all-templates.yaml
# Backstage example groups and users
- type: file
target: ../catalog-model/examples/acme-corp.yaml
rules:
allow:
- User
- Group
# Backstage end-to-end tests of TechDocs
- type: file
target: ../../cypress/e2e-fixture.catalog.info.yaml
+12
View File
@@ -0,0 +1,12 @@
apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
name: example-apis
description: A collection of all Backstage example APIs
spec:
targets:
- ./all-apis.yaml
- ./all-components.yaml
- ./all-domains.yaml
- ./all-resources.yaml
- ./all-systems.yaml