bc72782dd6
Allow to define JSON checks in `app-config.yaml` as `techInsights.factChecker.checks`. Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
640 B
640 B
@backstage/plugin-tech-insights-backend-module-jsonfc
| @backstage/plugin-tech-insights-backend-module-jsonfc |
|---|
| patch |
Support loading TechInsightsJsonRuleCheck instances from config.
Uses the check id as key.
Example:
techInsights:
factChecker:
checks:
groupOwnerCheck:
type: json-rules-engine
name: Group Owner Check
description: Verifies that a group has been set as the spec.owner for this entity
factIds:
- entityOwnershipFactRetriever
rule:
conditions:
all:
- fact: hasGroupOwner
operator: equal
value: true