vulnerabilityreport

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelGroupAll = "all"
)
View Source
const (
	VulnerabilityReportFinalizer = "starboard-exporter.giantswarm.io/vulnerabilityreport"
)

Variables

View Source
var VulnerabilityInfo *prometheus.GaugeVec

Gauge reporting the score of each CVE present in an image. Registered during first reconcile loop in registerMetrics().

View Source
var (
	VulnerabilitySummary = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: metricNamespace,
			Subsystem: metricSubsystem,
			Name:      "image_vulnerability_severity_count",
			Help:      "Exposes the number of vulnerabilities of a particular severity per-image.",
		},
		labelNamesForGroup(labelGroupSummary),
	)
)

Gauge for the count of all vulnerabilities of a particular severity contained in an image.

Functions

func LabelNamesForList

func LabelNamesForList(list []VulnerabilityLabel) []string

func RequeueReportsForPod added in v0.5.0

func RequeueReportsForPod(c client.Client, log logr.Logger, podIP string)

Types

type FieldScope

type FieldScope string
const (
	FieldScopeReport        FieldScope = "report"
	FieldScopeVulnerability FieldScope = "vulnerability"
)

type VulnerabilityLabel

type VulnerabilityLabel struct {
	Name   string
	Groups []string
	Scope  FieldScope
}

func LabelWithName

func LabelWithName(name string) (label VulnerabilityLabel, ok bool)

func LabelsForGroup

func LabelsForGroup(group string) []VulnerabilityLabel

type VulnerabilityReportReconciler

type VulnerabilityReportReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme

	MaxJitterPercent int
	ShardHelper      *utils.ShardHelper
	TargetLabels     []VulnerabilityLabel
}

VulnerabilityReportReconciler reconciles a VulnerabilityReport object

func (*VulnerabilityReportReconciler) Reconcile

func (*VulnerabilityReportReconciler) SetupWithManager

func (r *VulnerabilityReportReconciler) 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