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:
parent
4068b424d9
commit
a411825208
1 changed files with 1 additions and 0 deletions
|
@ -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++
|
||||
|
|
Loading…
Add table
Reference in a new issue