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(Conftest): Upgrade Conftest from v0.23.0 to v0.25.0 and use --no-fail flag #557

Merged
merged 1 commit into from May 9, 2021

Conversation

danielpacak
Copy link
Contributor

Resolves: #512

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

@@ -152,7 +152,7 @@ func (p *plugin) GetScanJobSpec(ctx starboard.PluginContext, obj client.Object)
// TODO Follow up with Conftest maintainers to allow returning 0 exit code in case of failures
Args: []string{
"-c",
"conftest test --output json --all-namespaces --policy /project/policy /project/workload.yaml || true",
"conftest test --no-fail --output json --all-namespaces --policy /project/policy /project/workload.yaml",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Finally, we ca fix the hack used for the POC

@danielpacak danielpacak added this to the Release v0.10.2 milestone May 7, 2021
@danielpacak danielpacak requested a review from itaysk May 7, 2021 16:22
@codecov
Copy link

codecov bot commented May 7, 2021

Codecov Report

Merging #557 (d073967) into main (b2d8284) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #557   +/-   ##
=======================================
  Coverage   70.81%   70.81%           
=======================================
  Files          63       63           
  Lines        4054     4054           
=======================================
  Hits         2871     2871           
+ Misses        867      863    -4     
- Partials      316      320    +4     
Impacted Files Coverage Δ
itest/matcher/matcher.go 82.27% <ø> (ø)
pkg/plugin/conftest/plugin.go 87.50% <100.00%> (ø)
pkg/starboard/config.go 74.85% <100.00%> (ø)
pkg/operator/controller/configauditreport.go 62.01% <0.00%> (-1.93%) ⬇️
pkg/operator/controller/ciskubebenchreport.go 66.11% <0.00%> (+2.22%) ⬆️

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 b2d8284...d073967. Read the comment docs.

…-fail flag

Resolves: #512

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
@danielpacak danielpacak merged commit 85af65f into main May 9, 2021
@danielpacak danielpacak deleted the issue_512 branch May 9, 2021 19:01
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.

Follow up on non zero exit code returned by Conftest in case of failures
2 participants