From 02ff04cfb5357003d56546d6badd6b5ff03f8059 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 Aug 2024 15:04:00 +0800 Subject: [PATCH 1/2] fix default sync schedule --- charts/bbgo/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index f96b462c7..b444efa25 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -91,7 +91,7 @@ debug: sync: enabled: false - schedule: "* * * * *" + schedule: "0 * * * *" ## since: sync from time since: false From 106a01e508c1096e8f69fd3747a731fbb92f187d Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 Aug 2024 15:19:07 +0800 Subject: [PATCH 2/2] wrap cronjob with sync.enabled var --- charts/bbgo/Chart.yaml | 2 +- charts/bbgo/templates/cronjob_sync.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/bbgo/Chart.yaml b/charts/bbgo/Chart.yaml index 2f27f5ae8..81856c143 100644 --- a/charts/bbgo/Chart.yaml +++ b/charts/bbgo/Chart.yaml @@ -15,7 +15,7 @@ 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.4.0 +version: 0.4.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/bbgo/templates/cronjob_sync.yaml b/charts/bbgo/templates/cronjob_sync.yaml index 917bf3383..dcd164fb6 100644 --- a/charts/bbgo/templates/cronjob_sync.yaml +++ b/charts/bbgo/templates/cronjob_sync.yaml @@ -1,3 +1,4 @@ +{{- if .Values.sync.enabled }} --- apiVersion: batch/v1 kind: CronJob @@ -51,3 +52,4 @@ spec: {{- else }} name: {{ include "bbgo.fullname" . }} {{- end }} +{{- end -}}