Skip to content

Commit 350439b

Browse files
authored
proper handle OwnerReference for manually created job (#2772)
1 parent 8713fba commit 350439b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/dao/cronjob.go

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func (c *CronJob) Run(path string) error {
8181
APIVersion: c.gvr.GV().String(),
8282
Kind: "CronJob",
8383
BlockOwnerDeletion: &true,
84+
Controller: &true,
8485
Name: cj.Name,
8586
UID: cj.UID,
8687
},

0 commit comments

Comments
 (0)