Skip to content

Commit 2f8acd2

Browse files
committed
fix: invalid audit scanner container command.
The container command is an array of strings. The `--disable-store` flag value passed is `false` which fails. Because it is unmarshaled as boolean. To fix that, the helper code to build the command now only add the flag if the user want to disable the store. Otherwise, it does not add the CLI flag that. As the default value for the flag is "false" this does not change the audit scanner behaviour. Signed-off-by: José Guilherme Vanz <[email protected]>
1 parent b951856 commit 2f8acd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charts/kubewarden-controller/templates/_helpers.tpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ Create the name of the service account to use for kubewarden-controller
118118
- {{ .Release.Namespace }}
119119
- --loglevel
120120
- {{ .Values.auditScanner.logLevel }}
121+
{{- if .Values.auditScanner.disableStore }}
121122
- --disable-store
122-
- {{ .Values.auditScanner.disableStore }}
123+
{{- end }}
123124
- --extra-ca
124125
- "/pki/policy-server-root-ca-pem"
125126
{{- if .Values.auditScanner.outputScan }}

0 commit comments

Comments
 (0)