Fix for missing Job annotations created from CronJob (#2073)
parent
8b51950c25
commit
6db13eaa99
|
|
@ -60,6 +60,7 @@ func (c *CronJob) Run(path string) error {
|
|||
Name: jobName + "-manual-" + rand.String(3),
|
||||
Namespace: ns,
|
||||
Labels: cj.Spec.JobTemplate.Labels,
|
||||
Annotations: cj.Spec.JobTemplate.Annotations,
|
||||
OwnerReferences: []metav1.OwnerReference{
|
||||
{
|
||||
APIVersion: c.gvr.GV().String(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue