Skip to content

Commit

Permalink
core: remove ownerRef from networkFence
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
subhamkrai committed Feb 8, 2024
1 parent ef487ec commit 2ac418a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/operator/ceph/cluster/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2ac418a

Please sign in to comment.