Skip to content

Commit

Permalink
Merge pull request #14234 from sp98/remove-owner-ref-in-cleanupjob
Browse files Browse the repository at this point in the history
core: remove owner refs in resource cleanup jobs
  • Loading branch information
travisn committed May 18, 2024
2 parents eecaa25 + c98fc86 commit 2555e51
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 2555e51

Please sign in to comment.