Skip to content

Commit

Permalink
UD-1541: Ensure both databases are downloaded on startup
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Conner <[email protected]>
  • Loading branch information
knrc committed Jun 7, 2024
1 parent 11c273a commit 9771745
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions charts/zora/templates/plugins/trivy-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ spec:
{{- if .Values.scan.plugins.trivy.insecure }}
--insecure \
{{- end }}
{{- if .Values.scan.plugins.trivy.persistence.downloadJavaDB }}
--download-java-db-only \
--download-db-only{{- if .Values.scan.plugins.trivy.persistence.downloadJavaDB }} && \
time trivy image \
--debug \
--no-progress \
--cache-dir=/tmp/trivy-cache \
{{- if .Values.scan.plugins.trivy.insecure }}
--insecure \
{{- end }}
--download-db-only
--download-java-db-only
{{- end }}
env:
- name: SSL_CERT_DIR
value: "/etc/ssl/:/run/secrets/kubernetes.io/serviceaccount/"
Expand Down

0 comments on commit 9771745

Please sign in to comment.