Skip to content

Commit

Permalink
Merge pull request #651 from gburges/croncron
Browse files Browse the repository at this point in the history
Renaming applyCronCronJob to just simply applyCronJob
  • Loading branch information
psav authored Jul 4, 2022
2 parents 8bedc68 + c977d5f commit 49bfabe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controllers/cloud.redhat.com/providers/cronjob/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion controllers/cloud.redhat.com/providers/cronjob/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49bfabe

Please sign in to comment.