backstage-entity-validator icon indicating copy to clipboard operation
backstage-entity-validator copied to clipboard

Referential integrity should be checked

Open dtuite opened this issue 4 years ago • 2 comments

There are cases where a Backstage metadata file will fail to import because of a group or other dependency that doesn't exist.

For example, if Group:engineering doesn't exist in the Backstage instance we try to import this YAML into, the import will fail.

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: sample-service-1
  description: A service for testing Backstage functionality
  annotations:
    github.com/project-slug: RoadieHQ/sample-service
spec:
  type: service
  owner: Group:engineering
  lifecycle: experimental

The validator should detect these failures as part of its standard suite of checks.

dtuite avatar Dec 22 '21 09:12 dtuite

https://app.shortcut.com/larder/story/5575

roadie-bot avatar Dec 22 '21 09:12 roadie-bot

It should also follow the targets for kind: Location

cal5barton avatar Mar 31 '23 21:03 cal5barton