diff --git a/charts/stable/clamav/Chart.yaml b/charts/stable/clamav/Chart.yaml index 7ac739e421c..646991e243f 100644 --- a/charts/stable/clamav/Chart.yaml +++ b/charts/stable/clamav/Chart.yaml @@ -34,4 +34,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/clamav - https://hub.docker.com/r/clamav/clamav type: application -version: 12.3.0 +version: 12.3.1 diff --git a/charts/stable/clamav/ci/basic-values.yaml b/charts/stable/clamav/ci/basic-values.yaml new file mode 100644 index 00000000000..58060afe086 --- /dev/null +++ b/charts/stable/clamav/ci/basic-values.yaml @@ -0,0 +1,3 @@ +clamav: + cron_enabled: true + cron_schedule: "0 4 12 * *" diff --git a/charts/stable/clamav/templates/_cronjob.tpl b/charts/stable/clamav/templates/_cronjob.tpl index b2b2a65ac79..fa0ebdc270c 100644 --- a/charts/stable/clamav/templates/_cronjob.tpl +++ b/charts/stable/clamav/templates/_cronjob.tpl @@ -1,13 +1,13 @@ {{/* Define the cronjob */}} {{- define "clamav.cronjob" -}} -enabled: true +enabled: {{ .Values.clamav.cron_enabled }} type: "CronJob" -schedule: "0 8 * * *" +schedule: {{ .Values.clamav.cron_schedule }} podSpec: restartPolicy: Never containers: cron: - enabled: true + enabled: {{ .Values.clamav.cron_enabled }} primary: true imageSelector: "image" env: diff --git a/charts/stable/clamav/values.yaml b/charts/stable/clamav/values.yaml index f8c80bd8970..5b9d4e1fa1e 100644 --- a/charts/stable/clamav/values.yaml +++ b/charts/stable/clamav/values.yaml @@ -8,6 +8,7 @@ securityContext: runAsNonRoot: false runAsUser: 0 runAsGroup: 0 + clamav: report_path: "/logs" # User Defined