Skip to content

CICD-411 · Backstage catalog validation ​

Encyclopedia · Platform engineering and internal developer platforms · All snippets

Previous · CICD-410 · Next · CICD-412

1. Where it fits ​

  • Placement CI run step.
  • Prerequisites platform sandbox, scoped identities and reviewed service catalog or provisioning policy.
  • Platforms kubernetes, local-lab.

2. Copy the snippet ​

bash
yq -e '.apiVersion == "backstage.io/v1alpha1" and .kind == "Component" and .spec.owner != null' catalog-info.yaml

3. How it works ​

A yq predicate verifies the catalog kind, API version and owner field. Catalog ingestion should separately resolve the referenced owner.

4. Verify the result ​

Verify basic catalog contract before ingestion. A catalog ingestion run should validate references and custom types.

Validation version-dependent (Bash parse). Status definitions.