@@ -179,9 +179,49 @@ func getDefaultRBAC() argoapp.ArgoCDRBACSpec {
179179}
180180
181181// NewCR returns an ArgoCD reference optimized for use in OpenShift
182- // with Tekton
182+ // with comprehensive default resource exclusions
183183func NewCR (name , ns string ) (* argoapp.ArgoCD , error ) {
184184 b , err := yaml .Marshal ([]resource {
185+ {
186+ APIGroups : []string {"" , "discovery.k8s.io" },
187+ Kinds : []string {"Endpoints" , "EndpointSlice" },
188+ Clusters : []string {"*" },
189+ },
190+ {
191+ APIGroups : []string {"apiregistration.k8s.io" },
192+ Kinds : []string {"APIService" },
193+ Clusters : []string {"*" },
194+ },
195+ {
196+ APIGroups : []string {"coordination.k8s.io" },
197+ Kinds : []string {"Lease" },
198+ Clusters : []string {"*" },
199+ },
200+ {
201+ APIGroups : []string {"authentication.k8s.io" , "authorization.k8s.io" },
202+ Kinds : []string {"SelfSubjectReview" , "TokenReview" , "LocalSubjectAccessReview" , "SelfSubjectAccessReview" , "SelfSubjectRulesReview" , "SubjectAccessReview" },
203+ Clusters : []string {"*" },
204+ },
205+ {
206+ APIGroups : []string {"certificates.k8s.io" },
207+ Kinds : []string {"CertificateSigningRequest" },
208+ Clusters : []string {"*" },
209+ },
210+ {
211+ APIGroups : []string {"cert-manager.io" },
212+ Kinds : []string {"CertificateRequest" },
213+ Clusters : []string {"*" },
214+ },
215+ {
216+ APIGroups : []string {"cilium.io" },
217+ Kinds : []string {"CiliumIdentity" , "CiliumEndpoint" , "CiliumEndpointSlice" },
218+ Clusters : []string {"*" },
219+ },
220+ {
221+ APIGroups : []string {"kyverno.io" , "reports.kyverno.io" , "wgpolicyk8s.io" },
222+ Kinds : []string {"PolicyReport" , "ClusterPolicyReport" , "EphemeralReport" , "ClusterEphemeralReport" , "AdmissionReport" , "ClusterAdmissionReport" , "BackgroundScanReport" , "ClusterBackgroundScanReport" , "UpdateRequest" },
223+ Clusters : []string {"*" },
224+ },
185225 {
186226 APIGroups : []string {"tekton.dev" },
187227 Kinds : []string {"TaskRun" , "PipelineRun" },
0 commit comments