From 80be135892d3e4ee5b8e2178e4905c8e44792f63 Mon Sep 17 00:00:00 2001 From: Blaize M Kaye Date: Thu, 26 Oct 2023 11:57:52 +1300 Subject: [PATCH] Adds image --- charts/lagoon-core/templates/insights-trivy.deployment.yaml | 1 + charts/lagoon-core/values.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/charts/lagoon-core/templates/insights-trivy.deployment.yaml b/charts/lagoon-core/templates/insights-trivy.deployment.yaml index 505d91a2..1c4f580a 100644 --- a/charts/lagoon-core/templates/insights-trivy.deployment.yaml +++ b/charts/lagoon-core/templates/insights-trivy.deployment.yaml @@ -28,6 +28,7 @@ spec: imagePullPolicy: {{ .Values.insightsTrivy.image.pullPolicy }} resources: {{- toYaml .Values.insightsTrivy.resources | nindent 10 }} + command: ["trivy", "server", "--cache-dir=/tmp", "--listen=0.0.0.0:4954", "-d"] ports: - containerPort: 4954 protocol: TCP diff --git a/charts/lagoon-core/values.yaml b/charts/lagoon-core/values.yaml index 22c217ca..536d7d4e 100644 --- a/charts/lagoon-core/values.yaml +++ b/charts/lagoon-core/values.yaml @@ -618,6 +618,9 @@ insightsHandler: # targetMemoryUtilizationPercentage: 80 insightsTrivy: + image: + repository: aquasec/trivy + tag: latest enabled: false service: type: ClusterIP