trivy

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerName                         = "trivy"
	LivenessProbe                         = "/probe/healthy"
	ReadinessProbe                        = "/probe/ready"
	CacheVolumeName                       = "cache"
	CacheVolumePath                       = "/home/scanner/.cache/trivy"
	ReportsVolumeName                     = "reports"
	ReportsVolumePath                     = "/home/scanner/.cache/reports"
	InternalCertificatesVolumeName        = "internal-certificates"
	InternalCertificateAuthorityDirectory = "/harbor_cust_cert"
	InternalCertificatesPath              = "/etc/harbor/ssl"
	PublicCertificatesVolumeName          = "public-certificates"
)
View Source
const (
	DefaultRequeueWait = 2 * time.Second
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)

Types

type NetworkPolicy

type NetworkPolicy graph.Resource

type Reconciler

type Reconciler struct {
	*commonCtrl.Controller
}

Reconciler reconciles a Trivy object.

func (*Reconciler) AddConfigMap

func (r *Reconciler) AddConfigMap(ctx context.Context, trivy *goharborv1.Trivy) (graph.Resource, error)

func (*Reconciler) AddDeployment

func (r *Reconciler) AddDeployment(ctx context.Context, trivy *goharborv1.Trivy, dependencies ...graph.Resource) error

func (*Reconciler) AddIngressNetworkPolicy

func (r *Reconciler) AddIngressNetworkPolicy(ctx context.Context, trivy *goharborv1.Trivy) (NetworkPolicy, error)

func (*Reconciler) AddNetworkPolicies

func (r *Reconciler) AddNetworkPolicies(ctx context.Context, trivy *goharborv1.Trivy) error

func (*Reconciler) AddResources

func (r *Reconciler) AddResources(ctx context.Context, resource resources.Resource) error

func (*Reconciler) AddSecret

func (r *Reconciler) AddSecret(ctx context.Context, trivy *goharborv1.Trivy) (graph.Resource, error)

func (*Reconciler) AddService

func (r *Reconciler) AddService(ctx context.Context, trivy *goharborv1.Trivy) error

func (*Reconciler) GetConfigMap

func (r *Reconciler) GetConfigMap(ctx context.Context, trivy *goharborv1.Trivy) (*corev1.ConfigMap, error)

GetConfigMap get the config map linked to the trivy deployment.

func (*Reconciler) GetDeployment

func (r *Reconciler) GetDeployment(ctx context.Context, trivy *goharborv1.Trivy) (*appsv1.Deployment, error)

func (*Reconciler) GetIngressNetworkPolicy

func (r *Reconciler) GetIngressNetworkPolicy(ctx context.Context, trivy *goharborv1.Trivy) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetSecret

func (r *Reconciler) GetSecret(ctx context.Context, trivy *goharborv1.Trivy) (*corev1.Secret, error)

func (*Reconciler) GetService

func (r *Reconciler) GetService(ctx context.Context, trivy *goharborv1.Trivy) (*corev1.Service, error)

func (*Reconciler) NewEmpty

func (r *Reconciler) NewEmpty(_ context.Context) resources.Resource

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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