From 2ac418a3b2ba689a53b9ec65596dbe225c0dce89 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Thu, 8 Feb 2024 23:08:35 +0530 Subject: [PATCH] core: remove ownerRef from networkFence since networkFence is a cluster-based resource so that we don't need the namespace and ownerReferences as it cause garbage-collector errors. Signed-off-by: subhamkrai --- pkg/operator/ceph/cluster/watcher.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/operator/ceph/cluster/watcher.go b/pkg/operator/ceph/cluster/watcher.go index 599cfb840493..1b717edb2e26 100644 --- a/pkg/operator/ceph/cluster/watcher.go +++ b/pkg/operator/ceph/cluster/watcher.go @@ -373,9 +373,6 @@ func (c *clientCluster) createNetworkFence(ctx context.Context, pv corev1.Persis ObjectMeta: metav1.ObjectMeta{ Name: node.Name, Namespace: cluster.Namespace, - OwnerReferences: []metav1.OwnerReference{ - *metav1.NewControllerRef(cluster, cephv1.SchemeGroupVersion.WithKind("CephCluster")), - }, }, Spec: addonsv1alpha1.NetworkFenceSpec{ Driver: pv.Spec.CSI.Driver,