Skip to content

Commit

Permalink
Merge pull request #4973 from backstage/timbonicus/add-example-org
Browse files Browse the repository at this point in the history
Add example org entities to default create-app
  • Loading branch information
freben committed Mar 17, 2021
2 parents a0098ba + 0283392 commit 98e95f7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .changeset/short-olives-mate.md
@@ -0,0 +1,22 @@
---
'@backstage/create-app': patch
---

Adds example groups and users to the default app template.

To apply this change in an existing application, change the following in `app-config.yaml`:

```diff
- type: url
target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all-apis.yaml

+ # Backstage example organization groups
+ - type: url
+ target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme/org.yaml
+ rules:
+ - allow: [Group, User]
+
# Backstage example templates
- type: url
target: https://github.com/backstage/backstage/blob/master/plugins/scaffolder-backend/sample-templates/react-ssr-template/template.yaml
```
6 changes: 6 additions & 0 deletions packages/create-app/templates/default-app/app-config.yaml.hbs
Expand Up @@ -89,6 +89,12 @@ catalog:
- type: url
target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all-apis.yaml

# Backstage example organization groups
- type: url
target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme/org.yaml
rules:
- allow: [Group, User]

# Backstage example templates
- type: url
target: https://github.com/backstage/backstage/blob/master/plugins/scaffolder-backend/sample-templates/react-ssr-template/template.yaml
Expand Down

0 comments on commit 98e95f7

Please sign in to comment.