policy-reporter icon indicating copy to clipboard operation
policy-reporter copied to clipboard

[Core] New Filter: LabelSelector

Open fjogeleit opened this issue 2 years ago • 2 comments

Currently it's possible to route resources to targets / channels based on namespace, source, policy and priorities.

For most cases this works fine but there are situations where a more fine grained / flexibel approach is needed. To achieve this I would like to add an labelSelector filter to route a result based on the labels of the related resource.

Requirements:

  • Read permissions for the associated resources. (Resource labels are not part of the PolicyReport and must be fetched separately).

fjogeleit avatar Oct 28 '22 10:10 fjogeleit

Any chance of this getting picked up & implemented? I'd really like to not have to explicitly list namespaces for channel filters & instead just use a label selector for the group of namespaces.

bkrein-vertex avatar Apr 04 '24 19:04 bkrein-vertex

Hey, this relates to filter based on resource / report labels.

Routing via NS labels is available in the current alpha release of Policy Reporter v3.

See https://github.com/kyverno/policy-reporter/issues/382 for details.

fjogeleit avatar Apr 04 '24 20:04 fjogeleit