Skip to content

Commit

Permalink
feat: add the possibility to disable RSPAMD
Browse files Browse the repository at this point in the history
Signed-off-by: fastlorenzo <[email protected]>
  • Loading branch information
fastlorenzo committed Jun 23, 2024
1 parent f857e1b commit bd6e740
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions mailu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ Check that the deployed pods are all running.

| Name | Description | Value |
| ---------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------- |
| `rspamd.enabled` | Enable rspamd | `true` |
| `rspamd.overrides` | Enable rspamd overrides | `{}` |
| `rspamd.antivirusAction` | Action to take when an virus is detected. Possible values: `reject` or `discard` | `discard` |
| `rspamd.logLevel` | Override default log level | `""` |
Expand Down
2 changes: 2 additions & 0 deletions mailu/templates/rspamd/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
{{- if .Values.rspamd.enabled }}
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
Expand Down Expand Up @@ -146,3 +147,4 @@ spec:
{{- if .Values.rspamd.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.rspamd.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{ end }}
2 changes: 1 addition & 1 deletion mailu/templates/rspamd/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if not .Values.persistence.single_pvc }}
{{- if and (not .Values.persistence.single_pvc) .Values.rspamd.enabled }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand Down
2 changes: 2 additions & 0 deletions mailu/templates/rspamd/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
{{- if .Values.rspamd.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -22,3 +23,4 @@ spec:
- name: rspamd-http
protocol: TCP
port: 11334
{{ end }}
2 changes: 1 addition & 1 deletion mailu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ dovecot:

## @section rspamd parameters
rspamd:
## @param admin.enabled Enable rspamd
## @param rspamd.enabled Enable rspamd
enabled: true
## @param rspamd.overrides Enable rspamd overrides
## More info here: https://mailu.io/master/faq.html#how-can-i-override-settings
Expand Down

0 comments on commit bd6e740

Please sign in to comment.