mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
combining cli reports
This commit is contained in:
parent
0c471f93d8
commit
e4e703f2b5
1 changed files with 4 additions and 0 deletions
|
@ -317,6 +317,10 @@ func printReportOrViolation(policyReport bool, engineResponses []response.Engine
|
|||
yamlResp, _ := yaml1.Marshal(u)
|
||||
fmt.Println(string(yamlResp))
|
||||
}
|
||||
fmt.Println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
|
||||
report, _ := generateCLIraw(resps)
|
||||
yamlReport, _ := yaml1.Marshal(report)
|
||||
fmt.Println(string(yamlReport))
|
||||
} else {
|
||||
rcCount := rc.pass + rc.fail + rc.warn + rc.error + rc.skip
|
||||
if rcCount < len(resourcePaths) {
|
||||
|
|
Loading…
Add table
Reference in a new issue