Files
backstage/.changeset/fuzzy-comics-collect.md
T
Patrick Jungermann bc72782dd6 feat(tech-insights): define fact checks in app-config.yaml
Allow to define JSON checks in `app-config.yaml`
as `techInsights.factChecker.checks`.

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2024-01-30 00:11:49 +01:00

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