mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* fix: synchronize source resource update to clone list target resource Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com> * add kuttl test to verify the clone list synchronized behavior Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com> * refactor functions parameters Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com> * fix the kuttl test description and behavior README Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com> * Use entire content to compare Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com>
24 lines
444 B
Go
24 lines
444 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
|
|
case "GenerateRequest":
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|