diff --git a/charts/mageai/Chart.yaml b/charts/mageai/Chart.yaml index e8a7559..c4cbb24 100644 --- a/charts/mageai/Chart.yaml +++ b/charts/mageai/Chart.yaml @@ -76,4 +76,4 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.8 +version: 0.2.9 diff --git a/charts/mageai/templates/cleanup-cronjob.yaml b/charts/mageai/templates/cleanup-cronjob.yaml index 5da91df..d7df461 100644 --- a/charts/mageai/templates/cleanup-cronjob.yaml +++ b/charts/mageai/templates/cleanup-cronjob.yaml @@ -21,8 +21,8 @@ spec: - -c - | repo_name="${USER_CODE_PATH:-default_repo}" && - mage clean-cached-variables "$repo_name" && - mage clean-old-logs "$repo_name" + mage clean-cached-variables "$repo_name" {{.Values.cleanupJob.clean_variable_cli_args | default ""}} && + mage clean-old-logs "$repo_name" {{.Values.cleanupJob.clean_log_cli_args | default ""}} env: {{- if .Values.env }} {{- toYaml .Values.env | nindent 16 }} diff --git a/charts/mageai/values.yaml b/charts/mageai/values.yaml index e17561a..70d225a 100644 --- a/charts/mageai/values.yaml +++ b/charts/mageai/values.yaml @@ -212,3 +212,5 @@ extraEnvs: cleanupJob: enabled: false + clean_variable_cli_args: "" + clean_log_cli_args: ""