Improve Kyverno PolicyReport CI Job to make it fail if relevant
What does this MR do and why?
This MR fix an issue preventing the kyverno policy test job to fail in case of policy failure.
It improve also the log content adding the scope of the issue :
scope:
apiVersion: policy/v1
kind: PodDisruptionBudget
name: calico-typha
namespace: calico-system
uid: 8bbc4041-c7c2-4967-9b30-3a18a92f71bf
results:
- category: Other
message: The matching PodDisruptionBudget for this resource has its unhealthyPodEvictionPolicy value different from 'AlwaysAllow' which is not permitted.
policy: pdb-unhealthypodeviction-check
result: fail
rule: pdb-unhealthypodeviction
scored: true
source: kyverno
timestamp:
nanos: 0
seconds: 1726157793
Related reference(s)
resolve issue #1626 (closed)