diff --git a/main.go b/main.go index 656a23486e0..edda96dcd79 100644 --- a/main.go +++ b/main.go @@ -269,7 +269,6 @@ func main() { //nolint:funlen,maintidx,gocyclo &rbacv1.RoleBinding{}: { Namespaces: oDHCache, }, - &ofapiv1alpha1.Subscription{}: {}, // TODO: workaround to get all subs work, without specify it seems it does not cache from all namespaces &rbacv1.ClusterRole{}: {}, &rbacv1.ClusterRoleBinding{}: {}, &securityv1.SecurityContextConstraints{}: {}, @@ -302,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