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(trivy): add mirror config in helm chart #1159

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

SISheogorath
Copy link
Contributor

@SISheogorath SISheogorath commented Apr 27, 2022

Description

This patch adds the trivy mirror configuration to the starboard operator
helm chart. This particular implementation is made to match the
definitions from the documentation and therefore uses two layers for the
object and singular terminology.

The patch is required because currently there is no way than post
deployment patching of the configmap in order to utilise this feature,
which works against the intention of helm. It was also very confusing to
find the documentation providing this option, but the helm chart not
doing so, therefore this patch should help to cleanup potential
confusion.

References:

https://aquasecurity.github.io/starboard/v0.15.4/vulnerability-scanning/trivy/#settings

Checklist

This patch adds the trivy mirror configuration to the starboard operator
helm chart. This particular implementation is made to match the
definitions from the documentation and therefore uses two layers for the
object and singular terminology.

The patch is required because currently there is no way than post
deployment patching of the configmap in order to utilise this feature,
which works against the intention of helm. It was also very confusing to
find the documentation providing this option, but the helm chart not
doing so, therefore this patch should help to cleanup potential
confusion.

References:
https://aquasecurity.github.io/starboard/v0.15.4/vulnerability-scanning/trivy/#settings
@CLAassistant
Copy link

CLAassistant commented Apr 27, 2022

CLA assistant check
All committers have signed the CLA.

@danielpacak danielpacak self-requested a review April 27, 2022 10:03
@codecov
Copy link

codecov bot commented Apr 27, 2022

Codecov Report

Merging #1159 (9772ccf) into main (5cd31a6) will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1159      +/-   ##
==========================================
+ Coverage   58.09%   58.15%   +0.05%     
==========================================
  Files          71       71              
  Lines        9305     9305              
==========================================
+ Hits         5406     5411       +5     
+ Misses       3352     3348       -4     
+ Partials      547      546       -1     
Impacted Files Coverage Δ
pkg/vulnerabilityreport/controller.go 56.09% <0.00%> (-2.75%) ⬇️
pkg/operator/controller/configauditreport.go 54.03% <0.00%> (+1.39%) ⬆️
pkg/operator/controller/ciskubebenchreport.go 56.17% <0.00%> (+3.58%) ⬆️

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 5cd31a6...9772ccf. Read the comment docs.

@danielpacak danielpacak added this to the Release v0.16.0 milestone Apr 27, 2022
@danielpacak danielpacak merged commit 85f9836 into aquasecurity:main Apr 27, 2022
@danielpacak
Copy link
Contributor

Thank you @SISheogorath working on this patch!

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.

3 participants