mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 15:37:19 +00:00
fix pr comment
This commit is contained in:
parent
2077409c85
commit
d7080c2d94
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ func generateAnnotationPatches(annotations map[string]string, engineResponses []
|
|||
}
|
||||
|
||||
var patchResponse response
|
||||
value := annotationFromPolicyResponses(engineResponses)
|
||||
value := annotationFromEngineResponses(engineResponses)
|
||||
if value == nil {
|
||||
// no patches or error while processing patches
|
||||
return nil
|
||||
|
@ -70,7 +70,7 @@ func generateAnnotationPatches(annotations map[string]string, engineResponses []
|
|||
return patchByte
|
||||
}
|
||||
|
||||
func annotationFromPolicyResponses(engineResponses []engine.EngineResponseNew) []byte {
|
||||
func annotationFromEngineResponses(engineResponses []engine.EngineResponseNew) []byte {
|
||||
var policyPatches []policyPatch
|
||||
for _, engineResponse := range engineResponses {
|
||||
if !engineResponse.IsSuccesful() {
|
||||
|
|
Loading…
Add table
Reference in a new issue