Merge pull request #2208 from spotify/rugvip/rules

catalog-backend: wrap location-specific rules in an additional rules field
This commit is contained in:
Patrik Oldsberg
2020-09-01 15:10:02 +02:00
committed by GitHub
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