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: Use embed package to define ConfigAuditReports CRD #531

Merged
merged 1 commit into from Apr 23, 2021

Conversation

danielpacak
Copy link
Contributor

Signed-off-by: Daniel Pacak pacak.daniel@gmail.com

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
@codecov
Copy link

codecov bot commented Apr 23, 2021

Codecov Report

Merging #531 (adb6504) into main (21e893c) will decrease coverage by 0.10%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #531      +/-   ##
==========================================
- Coverage   70.70%   70.60%   -0.11%     
==========================================
  Files          63       63              
  Lines        4028     4031       +3     
==========================================
- Hits         2848     2846       -2     
- Misses        871      874       +3     
- Partials      309      311       +2     
Impacted Files Coverage Δ
pkg/kube/cr_manager.go 49.66% <50.00%> (-0.34%) ⬇️
pkg/plugin/conftest/plugin.go 87.50% <50.00%> (ø)
pkg/plugin/polaris/plugin.go 91.36% <75.00%> (ø)
pkg/operator/controller/vulnerabilityreport.go 66.25% <0.00%> (-2.06%) ⬇️
pkg/operator/controller/configauditreport.go 66.39% <0.00%> (-1.25%) ⬇️
pkg/operator/controller/ciskubebenchreport.go 66.11% <0.00%> (+2.77%) ⬆️

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 ca59eb2...adb6504. Read the comment docs.

@@ -15,76 +11,9 @@ const (
ConfigAuditReportListKind = "ConfigAuditReportList"
)

var (
// TODO Once we migrate to Go 1.16 we can use the embed package to load the CRD from ./deploy/crd/configauditreports.crd.yaml
ConfigAuditReportCRD = apiextensionsv1.CustomResourceDefinition{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This Go struct literal is duplicate of deploy/crd/configauditreports.crd.yaml

@danielpacak danielpacak added this to the Release v0.10.2 milestone Apr 23, 2021
@danielpacak danielpacak merged commit 3d7ad49 into main Apr 23, 2021
@danielpacak danielpacak deleted the refactor-embed-configaudit-crd branch April 23, 2021 11:29
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