1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-13 19:28:55 +00:00

fix(kubectl-kyverno): dump error validation response message (#7758)

Signed-off-by: Raffael Sahli <raffael.sahli@doodle.com>
This commit is contained in:
raffis 2023-07-05 17:44:59 +02:00 committed by GitHub
parent 4068b424d9
commit a411825208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -355,6 +355,7 @@ func ProcessValidateEngineResponse(policy kyvernov1.PolicyInterface, validateRes
fmt.Printf("%d. %s: %s \n", i+1, valResponseRule.Name(), valResponseRule.Message())
}
case engineapi.RuleStatusError:
fmt.Printf("\npolicy %s -> resource %s error: %s\n", policy.GetName(), resPath, valResponseRule.Message())
rc.Error++
case engineapi.RuleStatusWarn:
rc.Warn++