Skip to content

🚀 tech-insights: Ability to add filters on the checks under techInsights.factChecker #4259

@surajnarwade

Description

@surajnarwade

Workspace

tech-insights

🔖 Feature description

Checks under techInsights.factChecker should be able to define filters. so that we can apply checks on required set of entities rather than all entities provided by respective factRetriever.

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
        filter:                                                                     <-- This
        - component.spec.lifecycle == production.     <-- This
        factIds:
          - entityOwnershipFactRetriever
        rule:
          conditions:
            all:
              - fact: hasGroupOwner
                operator: equal
                value: true

Note: this is just an example but any other config which provides similar results will also work.

🎤 Context

In my use-case, I have a requirement where I have certain checks which will only apply to subset of entities not all entities.

✌️ Possible Implementation

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededworkspace/tech-insightsUsed to tag tech-insights workspace issues and pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions