From c98fc8691881a9af1a077df923ef6544c7c5de3d Mon Sep 17 00:00:00 2001 From: sp98 Date: Fri, 17 May 2024 18:39:34 +0530 Subject: [PATCH] core: remove owner refs in resource cleanup jobs Removed owner reference from Radosnamespace and subVolumeGroup cleanup resources. Signed-off-by: sp98 --- pkg/operator/ceph/controller/cleanup.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/operator/ceph/controller/cleanup.go b/pkg/operator/ceph/controller/cleanup.go index 01c4b23047d6..99a4a60efd71 100644 --- a/pkg/operator/ceph/controller/cleanup.go +++ b/pkg/operator/ceph/controller/cleanup.go @@ -69,9 +69,8 @@ func (c *ResourceCleanup) StartJob(ctx context.Context, clientset kubernetes.Int podSpec := c.jobTemplateSpec() job := &batch.Job{ ObjectMeta: metav1.ObjectMeta{ - Name: jobName, - Namespace: c.resource.GetNamespace(), - OwnerReferences: c.resource.GetOwnerReferences(), + Name: jobName, + Namespace: c.resource.GetNamespace(), }, Spec: batch.JobSpec{ Template: podSpec,