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:
1 parent
32fb433235
commit
c556842e19
1 file changed
+2
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user