Skip to content

Commit

Permalink
proper handle OwnerReference for manually created job
Browse files Browse the repository at this point in the history
  • Loading branch information
wjiec committed Jul 2, 2024
1 parent 626bde1 commit 62f615f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dao/cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (c *CronJob) Run(path string) error {
APIVersion: c.gvr.GV().String(),
Kind: "CronJob",
BlockOwnerDeletion: &true,
Controller: &true,
Name: cj.Name,
UID: cj.UID,
},
Expand Down

0 comments on commit 62f615f

Please sign in to comment.