mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 23:46:56 +00:00
* feat: remove generate request CRD Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * changelog Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
22 lines
405 B
Go
22 lines
405 B
Go
package utils
|
|
|
|
func ExcludeKyvernoResources(kind string) bool {
|
|
switch kind {
|
|
case "ClusterPolicyReport":
|
|
return true
|
|
case "PolicyReport":
|
|
return true
|
|
case "AdmissionReport":
|
|
return true
|
|
case "ClusterAdmissionReport":
|
|
return true
|
|
case "BackgroundScanReport":
|
|
return true
|
|
case "ClusterBackgroundScanReport":
|
|
return true
|
|
case "UpdateRequest":
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|