core: remove owner refs in resource cleanup jobs

Removed owner reference from Radosnamespace and
subVolumeGroup cleanup resources.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit c98fc86918)
This commit is contained in:
sp98 authored and Mergify committed 2024-05-18 16:03:12 +00:00
1 parent 32fb433235
commit c556842e19
1 file changed
+2 -3
+2 -3
View File
@@ -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,