Skip to content

Commit

Permalink
update lookout cronjob template to have a overrideable name (#306) (#…
Browse files Browse the repository at this point in the history
…4087)

Co-authored-by: Eleanor Pratt <[email protected]>
  • Loading branch information
eleanorpratt and Eleanor Pratt authored Dec 12, 2024
1 parent 32b779d commit c6330c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deployment/lookout-v2/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
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:
schedule: {{ .Values.dbPruneSchedule | default "@hourly" | quote }}
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:
Expand All @@ -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:
Expand Down

0 comments on commit c6330c3

Please sign in to comment.