diff --git a/deployment/lookout-v2/templates/cronjob.yaml b/deployment/lookout-v2/templates/cronjob.yaml index 9bc07dced11..4c6b822607a 100644 --- a/deployment/lookout-v2/templates/cronjob.yaml +++ b/deployment/lookout-v2/templates/cronjob.yaml @@ -2,7 +2,7 @@ apiVersion: batch/v1 kind: CronJob metadata: - name: lookout-v2-db-pruner + name: {{ include "lookout_v2.name" . }}-db-pruner labels: {{- include "lookout_v2.labels.all" . | nindent 4 }} spec: @@ -10,14 +10,14 @@ spec: concurrencyPolicy: Forbid jobTemplate: metadata: - name: lookout-v2-db-pruner + name: {{ include "lookout_v2.name" . }}-db-pruner labels: {{- include "lookout_v2.labels.all" . | nindent 8 }} spec: backoffLimit: 6 template: metadata: - name: lookout-v2-db-pruner + name: {{ include "lookout_v2.name" . }}-db-pruner labels: {{- include "lookout_v2.labels.all" . | nindent 12 }} spec: @@ -27,7 +27,7 @@ spec: runAsUser: 1000 runAsGroup: 2000 containers: - - name: lookout-v2 + - name: lookout-db-pruner imagePullPolicy: IfNotPresent image: {{ .Values.image.repository }}:{{ required "A value is required for .Values.image.tag" .Values.image.tag }} args: