Skip to content

Commit

Permalink
Add support for additional Trivy arguments in deployment configuration (
Browse files Browse the repository at this point in the history
#801)

Signed-off-by: Casper Thygesen <[email protected]>
  • Loading branch information
cthtrifork authored Mar 7, 2025
1 parent f0a1a2d commit 121f7e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ spec:
- /
- image
- --download-db-only
{{- range $key, $value := .Values.plugin.trivy.extraArgs }}
{{- if $value }}
- --{{ $key }}={{ $value }}
{{- end }}
{{- end }}
securityContext:
{{- if .Values.plugin.trivy.securityContext }}
{{- toYaml .Values.plugin.trivy.securityContext | nindent 12 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/policy-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,9 @@ plugin:
# Defaults to `Chart.AppVersion` if omitted
tag: "0.58.2"

# -- Additional container args.
extraArgs: {}

github:
# -- (string) optional github token for authenticated GitHub API calls.
token: ""
Expand Down

0 comments on commit 121f7e7

Please sign in to comment.