Skip to content

Commit

Permalink
core: remove owner refs in resource cleanup jobs
Browse files Browse the repository at this point in the history
Removed owner reference from Radosnamespace and
subVolumeGroup cleanup resources.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit c98fc86)
  • Loading branch information
sp98 authored and mergify[bot] committed May 18, 2024
1 parent 32fb433 commit c556842
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/operator/ceph/controller/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c556842

Please sign in to comment.