From c7f62cf1e52a380e731cd6d4ff0398495dbd63da Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 Aug 2024 14:22:49 +0800 Subject: [PATCH] add since parameter --- charts/bbgo/templates/cronjob_sync.yaml | 4 ++++ charts/bbgo/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/bbgo/templates/cronjob_sync.yaml b/charts/bbgo/templates/cronjob_sync.yaml index 944d701af..917bf3383 100644 --- a/charts/bbgo/templates/cronjob_sync.yaml +++ b/charts/bbgo/templates/cronjob_sync.yaml @@ -30,6 +30,10 @@ spec: - "sync" - "--config" - "/config/bbgo.yaml" + {{- if .Values.sync.since }} + - "--since" + - {{ .Values.sync.since | quote }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index a8e810f3e..f96b462c7 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -92,6 +92,8 @@ debug: sync: enabled: false schedule: "* * * * *" + ## since: sync from time + since: false resources: # We usually recommend not to specify default resources and to leave this as a conscious