Skip to content

Commit 43f7785

Browse files
committed
..
1 parent 3ff7408 commit 43f7785

File tree

3 files changed

+61
-2
lines changed

3 files changed

+61
-2
lines changed

charts/mautic/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type: application
1818
# This is the chart version. This version number should be incremented each time you make changes
1919
# to the chart and its templates, including the app version.
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21-
version: 5.1.96
21+
version: 5.1.97
2222

2323
# This is the version number of the application being deployed. This version number should be
2424
# incremented each time you make changes to the application. Versions are not expected to

charts/mautic/templates/cronjob.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,4 +336,57 @@ spec:
336336
restartPolicy: OnFailure
337337
volumes:
338338
{{- include "mautic.volumes" . | nindent 12 }}
339+
{{- end }}
340+
---
341+
# messenger:consume email
342+
{{- if .Values.mautic.cron.messengerConsumeEmail.enabled }}
343+
kind: CronJob
344+
apiVersion: batch/v1
345+
metadata:
346+
name: {{ include "mautic.fullname" . }}-messenger-consume-email
347+
labels:
348+
{{- include "mautic.labels" . | nindent 4 }}
349+
spec:
350+
concurrencyPolicy: Forbid
351+
schedule: "{{ .Values.mautic.cron.messengerConsumeEmail.schedule }}"
352+
successfulJobsHistoryLimit: 1
353+
jobTemplate:
354+
spec:
355+
template:
356+
spec:
357+
containers:
358+
- name: console
359+
image: "{{ .Values.mautic.image.repository }}:console-{{ .Values.mautic.image.tag }}"
360+
imagePullPolicy: "{{ .Values.mautic.image.pullPolicy }}"
361+
args:
362+
- messenger:consume
363+
- email
364+
{{- if .Values.mautic.cron.messengerConsumeEmail.debug }}
365+
- -vv
366+
{{- end }}
367+
{{- if .Values.mautic.cron.messengerConsumeEmail.limit }}
368+
- --limit
369+
- "{{ .Values.mautic.cron.messengerConsumeEmail.limit }}"
370+
{{- end }}
371+
{{- if .Values.mautic.cron.messengerConsumeEmail.timeLimit }}
372+
- --time-limit
373+
- "{{ .Values.mautic.cron.messengerConsumeEmail.timeLimit }}"
374+
{{- end }}
375+
{{- if .Values.mautic.cron.messengerConsumeEmail.memoryLimit }}
376+
- --memory-limit
377+
- "{{ .Values.mautic.cron.messengerConsumeEmail.memoryLimit }}"
378+
{{- end }}
379+
envFrom:
380+
{{- include "mautic.envFrom" . | nindent 14 }}
381+
{{- if .Values.mautic.cron.messengerConsumeEmail.env }}
382+
env:
383+
{{- toYaml .Values.mautic.cron.messengerConsumeEmail.env | nindent 14 }}
384+
{{- end }}
385+
volumeMounts:
386+
{{- include "mautic.volumeMounts" . | nindent 14 }}
387+
resources:
388+
{{- toYaml .Values.mautic.cron.messengerConsumeEmail.resources | nindent 14 }}
389+
restartPolicy: OnFailure
390+
volumes:
391+
{{- include "mautic.volumes" . | nindent 12 }}
339392
{{- end }}

charts/mautic/values.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,16 @@ mautic:
155155
enabled: true
156156
schedule: "*/1 * * * *"
157157
resources: *cron_resources
158+
messengerConsumeEmail:
159+
enabled: true
160+
schedule: "*/1 * * * *"
161+
resources: *cron_resources
162+
memoryLimit: "256M"
163+
limit: 120
158164

159165
messenger:
160166
consumeEmail:
161-
enabled: true
167+
enabled: false
162168
resources: &message_resources
163169
limits:
164170
memory: 512Mi

0 commit comments

Comments
 (0)