Skip to content

Commit

Permalink
Merge pull request #652 from sp98/bz-2280946
Browse files Browse the repository at this point in the history
Bug 2280946: core: remove owner refs in resource cleanup jobs
  • Loading branch information
sp98 authored May 20, 2024
2 parents 32d64a5 + a77cd6c commit a682dfa
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 a682dfa

Please sign in to comment.