diff --git a/charts/datahub/templates/datahub-upgrade/datahub-cleanup-job-template.yml b/charts/datahub/templates/datahub-upgrade/datahub-cleanup-job-template.yml index e1e4b81ae..0cc4a7f05 100644 --- a/charts/datahub/templates/datahub-upgrade/datahub-cleanup-job-template.yml +++ b/charts/datahub/templates/datahub-upgrade/datahub-cleanup-job-template.yml @@ -6,7 +6,7 @@ apiVersion: {{ include "datahub.cronjob.apiVersion" $}} kind: CronJob metadata: - name: {{ .Release.Name }}-datahub-cleanup-job-template + name: {{ printf "%s-datahub-cleanup-job-template" .Release.Name | trunc 52 }} labels: {{- include "datahub.labels" . | nindent 4 }} spec: diff --git a/charts/datahub/templates/datahub-upgrade/datahub-restore-indices-job-template.yml b/charts/datahub/templates/datahub-upgrade/datahub-restore-indices-job-template.yml index 9c85b0183..0cb085bce 100644 --- a/charts/datahub/templates/datahub-upgrade/datahub-restore-indices-job-template.yml +++ b/charts/datahub/templates/datahub-upgrade/datahub-restore-indices-job-template.yml @@ -6,7 +6,7 @@ apiVersion: {{ include "datahub.cronjob.apiVersion" $}} kind: CronJob metadata: - name: {{ .Release.Name }}-datahub-restore-indices-job-template + name: {{ printf "%s-datahub-restore-indices-job-template" .Release.Name | trunc 52 }} labels: {{- include "datahub.labels" . | nindent 4 }} spec: