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

feat: exposes store flag from audit-scanner #360

Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions charts/kubewarden-controller/chart-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ auditScanner:
logLevel: info
# Output result of scan to stdout in JSON upon completion
outputScan: true
# Configures where a (Cluster)PolicyReport is stored.
# Currently, it can be either:
# - kubernetes: which will use Kubernetes/etcd
# - memory: which will use in-memory cache. note that you may need to adjust
# `resources.auditScanner` when using this store
store: "kubernetes"
# Values to configure the policy reporter subchart enabled by the
# auditScanner.policyReporter flag
policy-reporter:
Expand Down
2 changes: 2 additions & 0 deletions charts/kubewarden-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ Create the name of the service account to use for kubewarden-controller
- {{ .Release.Namespace }}
- --loglevel
- {{ .Values.auditScanner.logLevel }}
- --store
- {{ .Values.auditScanner.store }}
- --extra-ca
- "/pki/policy-server-root-ca-pem"
{{- if .Values.auditScanner.outputScan }}
Expand Down
6 changes: 6 additions & 0 deletions charts/kubewarden-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ auditScanner:
logLevel: info
# Output result of scan to stdout in JSON upon completion
outputScan: true
# Configures where a (Cluster)PolicyReport is stored.
# Currently, it can be either:
# - kubernetes: which will use Kubernetes/etcd
# - memory: which will use in-memory cache. note that you may need to adjust
# `resources.auditScanner` when using this store
store: "kubernetes"
# Values to configure the policy reporter subchart enabled by the
# auditScanner.policyReporter flag
policy-reporter:
Expand Down