controller

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package controller contains the resources reconciliation logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupIndexer

func SetupIndexer(ctx context.Context, mgr ctrl.Manager) error

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

type ImageWorkloadScanReconciler struct {
	client.Client
}

ImageWorkloadScanReconciler reconciles Image status based on WorkloadScanReport references.

func (*ImageWorkloadScanReconciler) Reconcile added in v0.10.0

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

type RegistryScanRunner struct {
	client.Client
}

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

func (*RegistryScanRunner) Start

func (r *RegistryScanRunner) Start(ctx context.Context) error

Start implements the Runnable interface.

type ScanJobReconciler

type ScanJobReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Publisher messaging.Publisher
}

ScanJobReconciler reconciles a ScanJob object

func (*ScanJobReconciler) Reconcile

func (r *ScanJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile 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

type VulnerabilityReportReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

VulnerabilityReportReconciler reconciles a VulnerabilityReport object

func (*VulnerabilityReportReconciler) Reconcile

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

type WorkloadScanReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*WorkloadScanReconciler) Reconcile added in v0.10.0

func (r *WorkloadScanReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*WorkloadScanReconciler) SetupWithManager added in v0.10.0

func (r *WorkloadScanReconciler) SetupWithManager(manager ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL