1
0
Fork 0
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:
NoSkillGirl 2020-11-01 19:46:35 +05:30
parent 0c471f93d8
commit e4e703f2b5

View file

@ -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) {