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: add missing ignoreMissingVulnerabilityReport logic and add tests #6

Conversation

fabriziosestito
Copy link
Contributor

Description

Fixes the logic when ignoreMissingVulnerabilityReport is set to true.
Adds missing tests.

@fabriziosestito fabriziosestito requested a review from a team as a code owner November 27, 2024 16:11
@fabriziosestito fabriziosestito self-assigned this Nov 27, 2024
@fabriziosestito fabriziosestito added the kind/bug Something isn't working label Nov 27, 2024
"digest" => digest,
"namespace" => namespace,
);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@flavio not sure about this, any error is mapped as VulnerabilityReportNotFound.
Unfortunately get_resource is using anyhow instead of typed errors, so maybe we could change the error name here.

Copy link
Member

Choose a reason for hiding this comment

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

Let's stick with that in the meantime. We should define a more granular API for host capabilities, something that returns back error codes

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 for the fix!

@flavio flavio merged commit cdd1694 into kubewarden:main Nov 27, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants