Skip to content

Commit b0da0bd

Browse files
Merge pull request #69 from mage-ai/xiaoyou/add-cli-args
[xy] Add optional cli args to cleanup jobs and bump version to 0.2.9
2 parents 0e8f70a + 46dd98f commit b0da0bd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
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.8
79+
version: 0.2.9

charts/mageai/templates/cleanup-cronjob.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ spec:
2121
- -c
2222
- |
2323
repo_name="${USER_CODE_PATH:-default_repo}" &&
24-
mage clean-cached-variables "$repo_name" &&
25-
mage clean-old-logs "$repo_name"
24+
mage clean-cached-variables "$repo_name" {{.Values.cleanupJob.clean_variable_cli_args | default ""}} &&
25+
mage clean-old-logs "$repo_name" {{.Values.cleanupJob.clean_log_cli_args | default ""}}
2626
env:
2727
{{- if .Values.env }}
2828
{{- toYaml .Values.env | nindent 16 }}

charts/mageai/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,5 @@ extraEnvs:
212212

213213
cleanupJob:
214214
enabled: false
215+
clean_variable_cli_args: ""
216+
clean_log_cli_args: ""

0 commit comments

Comments
 (0)