Merge pull request #1004 from kimba74/fix-trigger_cronjob

[BUGFIX] Correction of CronJob APIVersion
mine
Fernand Galiana 2021-02-06 12:52:25 -07:00 committed by GitHub
commit f20cc2290d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func (c *CronJob) Run(path string) error {
Labels: cj.Spec.JobTemplate.Labels,
OwnerReferences: []metav1.OwnerReference{
{
APIVersion: "batch/v1beta",
APIVersion: "batch/v1beta1",
Kind: "CronJob",
BlockOwnerDeletion: &true,
Name: cj.Name,