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 2 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
5 changes: 5 additions & 0 deletions charts/kubewarden-controller/chart-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,8 @@ 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
# File path to CA cert in PEM format of PolicyServer endpoints
policyServerCa: "/pki/policy-server-root-ca-pem"
flavio marked this conversation as resolved.
Show resolved Hide resolved
# Prints the result of scan in JSON to stdout
enableJsonReport: true
9 changes: 7 additions & 2 deletions 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"
- {{- .Values.auditScanner.policyServerCa }}
{{- if .Values.auditScanner.enableJsonReport }}
- --print
{{- end }}
flavio marked this conversation as resolved.
Show resolved Hide resolved
{{- range .Values.global.skipNamespaces }}
- {{ printf "-i" }}
- {{ printf "%s" . }}
Expand Down
5 changes: 5 additions & 0 deletions charts/kubewarden-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,8 @@ auditScanner:
containerRestartPolicy: Never
# Additional namespaces that the audit scanner will not scan:
skipAdditionalNamespaces: []
logLevel: info
# File path to CA cert in PEM format of PolicyServer endpoints
policyServerCa: "/pki/policy-server-root-ca-pem"
# Prints the result of scan in JSON to stdout
enableJsonReport: true