From 8a2c225feb70134f1ce085b0dafabeeba2a6e23a Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Thu, 23 Jan 2025 21:04:44 +0100 Subject: [PATCH] update: change previous workaround for subscription and add smcp in the list (#1557) - remove subs from client cache - add smcp into exclude cache Signed-off-by: Wen Zhou (cherry picked from commit bc63cfdf1d120eb015ee53223b26fb86e0939cc2) --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index efbbf9455ee..166a41fc36d 100644 --- a/main.go +++ b/main.go @@ -269,9 +269,6 @@ func main() { //nolint:funlen,maintidx,gocyclo &rbacv1.RoleBinding{}: { Namespaces: oDHCache, }, - &ofapiv1alpha1.Subscription{}: { - Namespaces: oDHCache, - }, &rbacv1.ClusterRole{}: {}, &rbacv1.ClusterRoleBinding{}: {}, &securityv1.SecurityContextConstraints{}: {}, @@ -304,6 +301,8 @@ func main() { //nolint:funlen,maintidx,gocyclo Cache: &client.CacheOptions{ DisableFor: []client.Object{ resources.GvkToUnstructured(gvk.OpenshiftIngress), + &ofapiv1alpha1.Subscription{}, + resources.GvkToUnstructured(gvk.ServiceMeshControlPlane), &authorizationv1.SelfSubjectRulesReview{}, }, // Set it to true so the cache-backed client reads unstructured objects