Zora is an open source solution that helps you achieve compliance with Kubernetes best practices recommended by industry-leading frameworks. By scanning your cluster with multiple plugins, Zora identifies potential issues, misconfigurations, and vulnerabilities.
In case a \<ClusterScan> is edited to remove one of its plugins, after
the plugin's \<Cronjob> has already been created, the reconciler would
not remove such instance.
Thus, this commit makes the scan controller delete \<Cronjobs> of plugins
not configured up to the given reconciliation time.
How has this been tested?
With go test and local executions on a virtual cluster.
Checklist
[x] I have labeled this PR with the relevant Type labels
Description
In case a \<ClusterScan> is edited to remove one of its plugins, after the plugin's \<Cronjob> has already been created, the reconciler would not remove such instance.
Thus, this commit makes the scan controller delete \<Cronjobs> of plugins not configured up to the given reconciliation time.
How has this been tested?
With go test and local executions on a virtual cluster.
Checklist