1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-17 01:37:33 +00:00
kyverno/config/crds
Charles-Edouard Brétéché e0ab72bb9a
feat: reports v2 implementation ()
This PR refactors the reports generation code.
It removes RCR and CRCR crds and replaces them with AdmissionReport, ClusterAdmissionReport, BackgroundScanReport and ClusterBackgroundScanReport crds.

The new reports system is based on 4 controllers:

Admission reports controller is responsible for cleaning up admission reports and attaching admission reports to their corresponding resource in case of a creation
Background scan reports controller is responsible for creating background scan reports when a resource and/or policy changes
Aggregation controller takes care of aggregation per resource reports into higher level reports (per namespace)
Resources controller is responsible for watching reports that need background scan reports
I added two new flags to disable admission reports and/or background scan reports, the whole reporting system can be disabled if something goes wrong.

I also added a flag to split reports in chunks to avoid creating too large resources.

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>

Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com>
Co-authored-by: prateekpandey14 <prateek.pandey@nirmata.com>
2022-09-28 17:15:16 +05:30
..
kustomization.yaml feat: reports v2 implementation () 2022-09-28 17:15:16 +05:30
kyverno.io_admissionreports.yaml feat: reports v2 implementation () 2022-09-28 17:15:16 +05:30
kyverno.io_backgroundscanreports.yaml feat: reports v2 implementation () 2022-09-28 17:15:16 +05:30
kyverno.io_clusteradmissionreports.yaml feat: reports v2 implementation () 2022-09-28 17:15:16 +05:30
kyverno.io_clusterbackgroundscanreports.yaml feat: reports v2 implementation () 2022-09-28 17:15:16 +05:30
kyverno.io_clusterpolicies.yaml Support PSa integration by controlName only () 2022-09-28 10:03:53 +00:00
kyverno.io_generaterequests.yaml fix: use official controller-gen () 2022-07-01 15:25:59 +00:00
kyverno.io_policies.yaml Support PSa integration by controlName only () 2022-09-28 10:03:53 +00:00
kyverno.io_updaterequests.yaml Corrected description for UpdateRequest struct () 2022-07-19 12:16:50 +00:00
wgpolicyk8s.io_clusterpolicyreports.yaml Update wgpolicyk8s.io CRDs () 2022-08-22 07:18:33 +00:00
wgpolicyk8s.io_policyreports.yaml Update wgpolicyk8s.io CRDs () 2022-08-22 07:18:33 +00:00