Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows more customisation to audit-scanner #282

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/kubewarden-controller/chart-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,6 @@ auditScanner:
containerRestartPolicy: Never
# Additional namespaces that the audit scanner will not scan:
skipAdditionalNamespaces: []
logLevel: info
flavio marked this conversation as resolved.
Show resolved Hide resolved
# Output result of scan to stdout in JSON upon completion
outputScan: true
7 changes: 6 additions & 1 deletion charts/kubewarden-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,15 @@ Create the name of the service account to use for kubewarden-controller

{{- define "audit-scanner.command" -}}
- /audit-scanner
- --kubewarden-namespace
- {{ .Release.Namespace }}
- --loglevel
- info
- {{- .Values.auditScanner.logLevel }}
- --extra-ca
- "/pki/policy-server-root-ca-pem"
{{- if .Values.auditScanner.outputScan }}
- --output-scan
{{- end }}
{{- range .Values.global.skipNamespaces }}
- {{ printf "-i" }}
- {{ printf "%s" . }}
Expand Down
3 changes: 3 additions & 0 deletions charts/kubewarden-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,6 @@ auditScanner:
containerRestartPolicy: Never
# Additional namespaces that the audit scanner will not scan:
skipAdditionalNamespaces: []
logLevel: info
# Output result of scan to stdout in JSON upon completion
outputScan: true