catalog-backend: wrap location-specific rules in an additional rules field

This commit is contained in:
Patrik Oldsberg
2020-09-01 11:30:59 +02:00
parent 7fce2aace7
commit 6e8f4ca44a
5 changed files with 32 additions and 24 deletions
@@ -37,7 +37,8 @@ catalog:
locations:
- type: github
target: https://github.com/org/example/blob/master/org-data.yaml
allow: [Group]
rules:
- allow: [Group]
```
We are able to add entities of kind `Component`, `API`, or `Template` from any
@@ -67,7 +67,8 @@ catalog:
locations:
- type: github
target: https://github.com/spotify/cookiecutter-golang/blob/master/template.yaml
allow: [Template]
rules:
- allow: [Template]
```
Templates can also be added by posting the to the catalog directly. Note that if