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

refactor: vulnerability plugin contract to accept client.Object #894

Merged

Conversation

deven0t
Copy link
Contributor

@deven0t deven0t commented Jan 10, 2022

This is needed for future development where we need more information on the object which we are scanning.

@codecov
Copy link

codecov bot commented Jan 10, 2022

Codecov Report

Merging #894 (9fde163) into main (e353bb3) will increase coverage by 0.22%.
The diff coverage is 27.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #894      +/-   ##
==========================================
+ Coverage   65.58%   65.81%   +0.22%     
==========================================
  Files          58       58              
  Lines        6512     6520       +8     
==========================================
+ Hits         4271     4291      +20     
+ Misses       1810     1797      -13     
- Partials      431      432       +1     
Impacted Files Coverage Δ
pkg/plugin/aqua/plugin.go 0.00% <0.00%> (ø)
pkg/plugin/trivy/plugin.go 81.99% <40.00%> (-0.28%) ⬇️
pkg/vulnerabilityreport/builder.go 84.32% <100.00%> (ø)
pkg/operator/controller/vulnerabilityreport.go 60.81% <0.00%> (-0.68%) ⬇️
pkg/operator/controller/ciskubebenchreport.go 63.31% <0.00%> (+2.62%) ⬆️
pkg/operator/controller/configauditreport.go 67.35% <0.00%> (+4.41%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e353bb3...9fde163. Read the comment docs.

@danielpacak danielpacak added this to the Release v0.14.0 milestone Jan 10, 2022
Copy link
Contributor

@danielpacak danielpacak left a comment

Choose a reason for hiding this comment

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

Hey @deven0t Looks good. Just left a few remarks. Make sure that you don't change import statements that much.

pkg/vulnerabilityreport/plugin.go Outdated Show resolved Hide resolved
pkg/vulnerabilityreport/plugin.go Outdated Show resolved Hide resolved
pkg/vulnerabilityreport/builder_test.go Outdated Show resolved Hide resolved
pkg/plugin/trivy/plugin.go Outdated Show resolved Hide resolved
pkg/plugin/trivy/plugin.go Outdated Show resolved Hide resolved
…ad of podSpec

This is needed for future development where we need more information of object which we are scanning.
@deven0t deven0t force-pushed the refactor-vuln-plugin-contract branch from ca74570 to 9fde163 Compare January 11, 2022 05:25
@danielpacak danielpacak merged commit 3d0417d into aquasecurity:main Jan 11, 2022
@deven0t deven0t deleted the refactor-vuln-plugin-contract branch January 11, 2022 09:02
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.

None yet

2 participants