Documentation
¶
Overview ¶
Package controller contains the resources reconciliation logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformStripPod ¶ added in v0.10.0
func TransformStripPod(object interface{}) (interface{}, error)
TransformStripPod strips the Pod object to only keep container names and images. This removes status and all other spec fields to reduce memory usage. The workloadscan controller only needs container names and images.
Types ¶
type ImageWorkloadScanReconciler ¶ added in v0.10.0
ImageWorkloadScanReconciler reconciles Image status based on WorkloadScanReport references.
func (*ImageWorkloadScanReconciler) SetupWithManager ¶ added in v0.10.0
func (r *ImageWorkloadScanReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type RegistryScanRunner ¶
RegistryScanRunner handles periodic scanning of registries based on their scan intervals.
func (*RegistryScanRunner) NeedLeaderElection ¶
func (r *RegistryScanRunner) NeedLeaderElection() bool
NeedLeaderElection implements the LeaderElectionRunnable interface.
func (*RegistryScanRunner) SetupWithManager ¶
func (r *RegistryScanRunner) SetupWithManager(mgr ctrl.Manager) error
type ScanJobReconciler ¶
type ScanJobReconciler struct {
client.Client
Scheme *runtime.Scheme
Publisher messaging.Publisher
}
ScanJobReconciler reconciles a ScanJob object
func (*ScanJobReconciler) SetupWithManager ¶
func (r *ScanJobReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VulnerabilityReportReconciler ¶
VulnerabilityReportReconciler reconciles a VulnerabilityReport object
func (*VulnerabilityReportReconciler) Reconcile ¶
func (r *VulnerabilityReportReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reconciles a VulnerabilityReport object.
func (*VulnerabilityReportReconciler) SetupWithManager ¶
func (r *VulnerabilityReportReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type WorkloadScanReconciler ¶ added in v0.10.0
func (*WorkloadScanReconciler) SetupWithManager ¶ added in v0.10.0
func (r *WorkloadScanReconciler) SetupWithManager(manager ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.