Skip to content

Commit

Permalink
Added changeset for backstage#2628
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Oct 2, 2020
1 parent 1d0aec7 commit 57d555e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .changeset/2628.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'@backstage/plugin-catalog-backend': minor
---
This feature works the same as $secret does in config - it allows programmatic substitution of values into a document.

This is particularly useful e.g. for API type entities where you do not want to repeat your entire API spec document inside the catalog-info.yaml file. For those cases, you can instead do something like

```
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: my-federated-service
spec:
type: graphql
definition:
$text: ./schema.graphql
```

The textual content of that file will be injected as the value of definition, during each refresh loop. Both relative and absolute paths are supported, as well as any HTTP/HTTPS URL pointing to a service that returns the relevant data.

The initial version supports injection of text file data, and structured data from JSON and YAML files. You can add any handler of your own in addition to these.

0 comments on commit 57d555e

Please sign in to comment.