Skip to content

Commit

Permalink
chore: expose skip-dir helm param (#786)
Browse files Browse the repository at this point in the history
* chore: expose skip-dir helm param

Signed-off-by: chenk <hen.keinan@gmail.com>

* chore: expose skip-dir helm param

Signed-off-by: chenk <hen.keinan@gmail.com>

Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan authored Dec 13, 2022
1 parent a77a215 commit 9c102f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions deploy/helm/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ data:
trivy.slow: {{ .Values.trivy.slow | quote }}
trivy.dbRepository: {{ .Values.trivy.dbRepository | quote }}
trivy.command: {{ .Values.trivy.command | quote }}
{{- if .Values.trivy.skipDirs }}
trivy.skipDirs: {{ .Values.trivy.skipDirs | quote }}
{{- end }}
{{- if .Values.trivy.dbRepositoryInsecure }}
trivy.dbRepositoryInsecure: {{ .Values.trivy.dbRepositoryInsecure | quote }}
{{- end }}
Expand Down
4 changes: 3 additions & 1 deletion deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ image:
service:
metricsPort: 80

# Prometheus ServiceMonitor configuration -- to install the trivy operator with the ServiceMonitor
# Prometheus ServiceMonitor configuration -- to install the trivy operator with the ServiceMonitor
# you must have Prometheus already installed and running
serviceMonitor:
# enabled determines whether a serviceMonitor should be deployed
Expand Down Expand Up @@ -247,6 +247,8 @@ trivy:
# vulnerabilities reported by Trivy. Set to true to enable it.
#
ignoreUnfixed: false
# a comma separated list of directories for Trivy to skip
skipDirs:

# offlineScan is the flag to enable the offline scan functionality in Trivy
# This will prevent outgoing HTTP requests, e.g. to search.maven.org
Expand Down

0 comments on commit 9c102f5

Please sign in to comment.