This commit is contained in:
2022-06-01 16:03:38 +02:00
parent 993ba719fe
commit aaf0e3e9ed

View File

@@ -35,11 +35,6 @@ func NewCrontab(name, image, command, schedule string, serviceAccount *ServiceAc
cron.K8sBase.ApiVersion = "batch/v1" cron.K8sBase.ApiVersion = "batch/v1"
cron.K8sBase.Kind = "CronJob" cron.K8sBase.Kind = "CronJob"
//cmd, err := shlex.Split(command)
//if err != nil {
// panic(err)
//}
cron.K8sBase.Metadata.Name = ReleaseNameTpl + "-" + name cron.K8sBase.Metadata.Name = ReleaseNameTpl + "-" + name
cron.K8sBase.Metadata.Labels[K+"/component"] = name cron.K8sBase.Metadata.Labels[K+"/component"] = name
cron.Spec.Schedule = schedule cron.Spec.Schedule = schedule