Skip to content

Commit d405b96

Browse files
Merge pull request #71 from aabf/Add-control-to-clean-cron-job
Allow users to define the schedule for the cleanup job
2 parents b0da0bd + 203a0d1 commit d405b96

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

charts/mageai/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ type: application
7676
# This is the chart version. This version number should be incremented each time you make changes
7777
# to the chart and its templates, including the app version.
7878
# Versions are expected to follow Semantic Versioning (https://semver.org/)
79-
version: 0.2.9
79+
version: 0.2.10

charts/mageai/templates/cleanup-cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CronJob
44
metadata:
55
name: {{ include "mageai.fullname" . }}-cleanup-job
66
spec:
7-
schedule: "0 * * * *" # Runs every hour
7+
schedule: {{ .Values.cleanupJob.schedule_cron | default "0 * * * *" | quote }}
88
jobTemplate:
99
spec:
1010
template:

charts/mageai/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,4 @@ cleanupJob:
214214
enabled: false
215215
clean_variable_cli_args: ""
216216
clean_log_cli_args: ""
217+
schedule_cron: "0 * * * *" # Runs every hour

0 commit comments

Comments
 (0)