Fix for missing Job annotations created from CronJob (#2073)

mine
SammyA 2023-05-07 16:00:29 +02:00 committed by GitHub
parent 8b51950c25
commit 6db13eaa99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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(),