policy-reporter
policy-reporter copied to clipboard
[Core] New Filter: LabelSelector
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).
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.
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.