Skip to content

Commit

Permalink
fix cronjob name to use dc object name
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 committed Jan 17, 2024
1 parent d0454f1 commit e45c4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/medusa/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func StandaloneMedusaService(dcConfig *cassandra.DatacenterConfig, medusaSpec *a
func PurgeCronJob(dcConfig *cassandra.DatacenterConfig, medusaSpec *api.MedusaClusterTemplate, clusterName, namespace string, logger logr.Logger) *batchv1.CronJob {
purgeCronJob := &batchv1.CronJob{
ObjectMeta: metav1.ObjectMeta{
Name: MedusaPurgeCronJobName(cassdcapi.CleanupForKubernetes(clusterName), dcConfig.SanitizedName()),
Name: MedusaPurgeCronJobName(cassdcapi.CleanupForKubernetes(clusterName), cassdcapi.CleanupForKubernetes(dcConfig.Meta.Name)),
Namespace: namespace,
},
Spec: batchv1.CronJobSpec{
Expand Down

0 comments on commit e45c4f6

Please sign in to comment.