Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)
- type NetworkPolicy
- type Reconciler
- func (r *Reconciler) AddConfigMap(ctx context.Context, trivy *goharborv1.Trivy) (graph.Resource, error)
- func (r *Reconciler) AddDeployment(ctx context.Context, trivy *goharborv1.Trivy, dependencies ...graph.Resource) error
- func (r *Reconciler) AddIngressNetworkPolicy(ctx context.Context, trivy *goharborv1.Trivy) (NetworkPolicy, error)
- func (r *Reconciler) AddNetworkPolicies(ctx context.Context, trivy *goharborv1.Trivy) error
- func (r *Reconciler) AddResources(ctx context.Context, resource resources.Resource) error
- func (r *Reconciler) AddSecret(ctx context.Context, trivy *goharborv1.Trivy) (graph.Resource, error)
- func (r *Reconciler) AddService(ctx context.Context, trivy *goharborv1.Trivy) error
- func (r *Reconciler) GetConfigMap(ctx context.Context, trivy *goharborv1.Trivy) (*corev1.ConfigMap, error)
- func (r *Reconciler) GetDeployment(ctx context.Context, trivy *goharborv1.Trivy) (*appsv1.Deployment, error)
- func (r *Reconciler) GetIngressNetworkPolicy(ctx context.Context, trivy *goharborv1.Trivy) (*netv1.NetworkPolicy, error)
- func (r *Reconciler) GetSecret(ctx context.Context, trivy *goharborv1.Trivy) (*corev1.Secret, error)
- func (r *Reconciler) GetService(ctx context.Context, trivy *goharborv1.Trivy) (*corev1.Service, error)
- func (r *Reconciler) NewEmpty(_ context.Context) resources.Resource
- func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
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 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 (*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) SetupWithManager ¶
Click to show internal directories.
Click to hide internal directories.