diff --git a/controllers/cloud.redhat.com/providers/cronjob/impl.go b/controllers/cloud.redhat.com/providers/cronjob/impl.go index 6e24384df..9fe37dd7f 100644 --- a/controllers/cloud.redhat.com/providers/cronjob/impl.go +++ b/controllers/cloud.redhat.com/providers/cronjob/impl.go @@ -36,7 +36,7 @@ func (j *cronjobProvider) makeCronJob(cronjob *crd.Job, app *crd.ClowdApp) error return err } - applyCronCronJob(app, j.Env, c, &pt, nn, cronjob) + applyCronJob(app, j.Env, c, &pt, nn, cronjob) if err := j.Cache.Update(CoreCronJob, c); err != nil { return err @@ -163,7 +163,7 @@ func buildPodTemplate(app *crd.ClowdApp, env *crd.ClowdEnvironment, pt *core.Pod return nil } -func applyCronCronJob(app *crd.ClowdApp, env *crd.ClowdEnvironment, cj *batch.CronJob, pt *core.PodTemplateSpec, nn types.NamespacedName, cronjob *crd.Job) { +func applyCronJob(app *crd.ClowdApp, env *crd.ClowdEnvironment, cj *batch.CronJob, pt *core.PodTemplateSpec, nn types.NamespacedName, cronjob *crd.Job) { labels := app.GetLabels() labels["pod"] = nn.Name app.SetObjectMeta(cj, crd.Name(nn.Name), crd.Labels(labels)) diff --git a/controllers/cloud.redhat.com/providers/cronjob/provider.go b/controllers/cloud.redhat.com/providers/cronjob/provider.go index fa58bbf0a..9aac91b90 100644 --- a/controllers/cloud.redhat.com/providers/cronjob/provider.go +++ b/controllers/cloud.redhat.com/providers/cronjob/provider.go @@ -9,7 +9,7 @@ import ( // ProvName sets the provider name identifier var ProvName = "cronjob" -// CoreCronJob is the croncronjob for the apps cronjobs. +// CoreCronJob is the cronjob for the apps cronjobs. var CoreCronJob = rc.NewMultiResourceIdent(ProvName, "core_cronjob", &batch.CronJob{}) // GetCronJob returns the correct cronjob provider.