1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

Fix priority mapping for uppercase policies

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
Frank Jogeleit 2022-08-27 11:39:00 +02:00
parent d1341ba0a3
commit 86464d8081

View file

@ -1,6 +1,7 @@
package kubernetes
import (
"strings"
"time"
"github.com/kyverno/policy-reporter/pkg/report"
@ -141,7 +142,7 @@ func (m *mapper) mapResult(result v1alpha2.PolicyReportResult, res report.Resour
}
if r.Status == report.Fail {
r.Priority = m.resolvePriority(r.Policy, r.Severity)
r.Priority = m.resolvePriority(strings.ToLower(r.Policy), r.Severity)
}
if id, ok := result.Properties[ResultIDKey]; ok {