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]>
(cherry picked from commit 2ac418a)
(cherry picked from commit 0113cc8)
  • Loading branch information
subhamkrai committed Feb 9, 2024
1 parent 85dee4a commit 05f33bf
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 @@ -533,9 +533,6 @@ func (c *clientCluster) createNetworkFence(ctx context.Context, pv corev1.Persis
ObjectMeta: metav1.ObjectMeta{
Name: fenceResourceName(node.Name, driver),
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 05f33bf

Please sign in to comment.