create-app: add example org data and update example locations/

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-05-03 12:35:51 +02:00
parent e5d9184fb1
commit 0875169636
2 changed files with 36 additions and 21 deletions
@@ -90,28 +90,26 @@ catalog:
rules:
- allow: [Component, System, API, Resource, Location]
locations:
# Backstage example components
# Local example data, file locations are relative to the backend process, typically `packages/backend`
- type: file
target: ../../examples/all-components.yaml
target: ../../examples/entities.yaml
# Backstage example systems
# Local example template
- type: file
target: ../../examples/all-systems.yaml
# Backstage example APIs
- type: file
target: ../../examples/all-apis.yaml
# Backstage example resources
- type: file
target: ../../examples/all-resources.yaml
# Backstage example organization groups
- type: file
target: ../../examples/acme/org.yaml
# Backstage example templates
- type: file
target: ../../examples/all-templates.yaml
target: ../../examples/template/template.yaml
rules:
- allow: [Template]
- allow: [Template]
# Local example organizational data
- type: file
target: ../../examples/org.yaml
rules:
- allow: [User, Group]
## Uncomment these lines to add more example data
# - type: url
# target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all.yaml
## Uncomment these lines to add an example org
# - type: url
# target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme-corp.yaml
@@ -0,0 +1,17 @@
---
apiVersion: backstage.io/v1alpha1
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-user
kind: User
metadata:
name: guest
spec:
memberOf: [guests]
---
apiVersion: backstage.io/v1alpha1
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-group
kind: Group
metadata:
name: guests
spec:
type: squad
children: []