controller

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer added in v0.7.0

type Analyzer interface {
	HasVulnerabilityReports(ctx context.Context, owner kube.Object, images kube.ContainerImages, hash string) (bool, error)
	GetActiveScanJob(ctx context.Context, owner kube.Object, hash string) (*batchv1.Job, error)
	IsConcurrentScanJobsLimitExceeded(ctx context.Context) (bool, int, error)
}

func NewAnalyzer added in v0.7.0

func NewAnalyzer(config etc.Operator, store vulnerabilityreport.StoreInterface, client client.Client) Analyzer

type Reconciler added in v0.7.0

type Reconciler interface {
	SubmitScanJob(ctx context.Context, podSpec corev1.PodSpec, owner kube.Object, images kube.ContainerImages, hash string) error
	ParseLogsAndSaveVulnerabilityReports(ctx context.Context, scanJob *batchv1.Job, workload kube.Object, containerImages kube.ContainerImages, hash string) error
	GetPodControlledBy(ctx context.Context, job *batchv1.Job) (*corev1.Pod, error)
}

func NewReconciler added in v0.7.0

func NewReconciler(scheme *runtime.Scheme,
	config etc.Operator,
	client client.Client,
	store vulnerabilityreport.StoreInterface,
	idGenerator ext.IDGenerator,
	scanner vulnerabilityreport.Scanner,
	logsReader *logs.Reader) Reconciler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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