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

fix: invalid audit scanner container command. #392

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

jvanz
Copy link
Member

@jvanz jvanz commented Mar 4, 2024

Description

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 must quote the boolean value

The memory resource configuration for the audit scanner is wrong. The limit is less then the requested amount. This commit fixed that by inverting the quantities.

Fix #390

The memory resource configuration for the audit scanner is wrong. The
limit is less then the requested amount. This commit fixed that by
inverting the quantities.

Signed-off-by: José Guilherme Vanz <[email protected]>
@jvanz jvanz self-assigned this Mar 4, 2024
@jvanz jvanz requested a review from a team as a code owner March 4, 2024 15:46
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]>
Copy link
Contributor

@fabriziosestito fabriziosestito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this

Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@jvanz jvanz merged commit 2f8acd2 into kubewarden:main Mar 4, 2024
2 of 3 checks passed
@jvanz jvanz deleted the issue390 branch March 4, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.11.0-rc1 UPGRADE FAILED: cannot patch "audit-scanner" with kind CronJob: "" is invalid
3 participants