1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/pkg/webhooks/utils/exclude.go
Charles-Edouard Brétéché db2f47b8b5
fix: allow mutation of policy reports (#8080)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-08-22 09:44:25 +00:00

18 lines
326 B
Go

package utils
func ExcludeKyvernoResources(kind string) bool {
switch kind {
case "AdmissionReport":
return true
case "ClusterAdmissionReport":
return true
case "BackgroundScanReport":
return true
case "ClusterBackgroundScanReport":
return true
case "UpdateRequest":
return true
default:
return false
}
}