Check Component lifecycle is valid

Published on October 6th, 2022

The spec.lifecycle of a component can be a useful indicator of the maturity of a component. However, it is an arbitrary string in the Backstage spec, and the catalog can get confusing when people enter arbitrary values.

You can enforce a small number of valid values with the following check:

FieldInput
NameBackstage component metadata lifecycle should be valid
DescriptionOnly a small number of lifecycles are supported.
Data sourceEntity Metadata (this is built-in).
FactLifecycle
Fact operatorIs One Of
Valueproduction,deprecated,experimental

Make sure to adapt the Value field according to the lifecycles you want to support.