controller

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CISKubeBenchReportReconciler

CISKubeBenchReportReconciler reconciles corev1.Node and corev1.Job objects to check cluster nodes configuration with CIS Kubernetes Benchmark and saves results as v1alpha1.CISKubeBenchReport objects. Each v1alpha1.CISKubeBenchReport is controlled by the corev1.Node for which it was generated. Additionally, the CISKubeBenchReportReconciler.SetupWithManager method informs the ctrl.Manager that this controller reconciles nodes that own benchmark reports, so that it will automatically call the reconcile callback on the underlying corev1.Node when a v1alpha1.CISKubeBenchReport changes, is deleted, etc.

func (*CISKubeBenchReportReconciler) SetupWithManager

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

type LimitChecker

type LimitChecker interface {
	Check(ctx context.Context) (bool, int, error)
}

func NewLimitChecker

func NewLimitChecker(config etc.Config, client client.Client, trivyOperatorConfig trivyoperator.ConfigData) LimitChecker

type PluginsConfigReconciler

func (*PluginsConfigReconciler) SetupWithManager

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

type TTLReportReconciler

type TTLReportReconciler struct {
	logr.Logger
	etc.Config
	client.Client
	ext.Clock
}

func (*TTLReportReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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