Merge pull request #3463 from SDA-SE/feat/handle-empty-yaml-documents

Handle empty YAML documents
This commit is contained in:
Oliver Sand
2020-11-27 11:06:07 +01:00
committed by GitHub
3 changed files with 56 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
---
'@backstage/plugin-catalog-backend': patch
---
Ignore empty YAML documents. Having a YAML file like this is now ingested without an error:
```yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: web
spec:
type: website
---
```
This behaves now the same way as Kubernetes handles multiple documents in a single YAML file.