-
Notifications
You must be signed in to change notification settings - Fork 526
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededworkspace/tech-insightsUsed to tag tech-insights workspace issues and pull requestsUsed to tag tech-insights workspace issues and pull requests
Description
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?
- I have read the Code of Conduct
Are you willing to submit PR?
None
kurtaking
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededworkspace/tech-insightsUsed to tag tech-insights workspace issues and pull requestsUsed to tag tech-insights workspace issues and pull requests