operator

package
v0.18.0-rc Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Overview

Package operator provides primitives for implementing Trivy-Operator Operator.

Index

Constants

View Source
const (
	K8sRepo     = "kubernetes"
	K8sRegistry = "k8s.io"
)

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, buildInfo trivyoperator.BuildInfo, operatorConfig etc.Config) error

Start starts all registered reconcilers and blocks until the context is cancelled. Returns an error if there is an error starting any reconciler.

Types

type ClusterController added in v0.18.0

type ClusterController struct {
	logr.Logger
	*vc.WorkloadController
	// contains filtered or unexported fields
}
ClusterReconciler reconciles corev1.Node and corev1.Pod objects

to collect cluster nodes and cluster core components (api-server,kubelet,etcd and more) infomation for vulnerability scanning the node information will be evaluated by the complaince control checks per relevant reports, examples: cis-benchmark and nsa

func (*ClusterController) SetupWithManager added in v0.18.0

func (r *ClusterController) SetupWithManager(mgr ctrl.Manager) error

type TTLReportReconciler added in v0.5.0

func (*TTLReportReconciler) DeleteReportIfExpired added in v0.5.0

func (r *TTLReportReconciler) DeleteReportIfExpired(ctx context.Context, namespacedName types.NamespacedName, reportType client.Object, arr ...string) (ctrl.Result, error)

func (*TTLReportReconciler) SetupWithManager added in v0.5.0

func (r *TTLReportReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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