controllers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScannerJobName   = "scan-image"
	SharedVolumeName = "shared-disk"
	WorkDir          = "/root/.cache"
)

Variables

This section is empty.

Functions

func EnsureScanReport

func EnsureScanReport(kc client.Client, imageRef string, singleReport trivy.SingleReport, versionInfo trivy.Version) (*api.ImageScanReport, error)

Types

type Reconciler

type Reconciler struct {
	client.Client
	// contains filtered or unexported fields
}

func NewImageScanRequestReconciler

func NewImageScanRequestReconciler(kc client.Client, nc *nats.Conn, scannedImage, trivyImage, trivyDBCacherImage, fsAddr string) *Reconciler

func (*Reconciler) Reconcile

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

func (*Reconciler) ScanForPrivateImage

func (r *Reconciler) ScanForPrivateImage(isr api.ImageScanRequest) error

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr 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