From 106a01e508c1096e8f69fd3747a731fbb92f187d Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 Aug 2024 15:19:07 +0800 Subject: [PATCH] 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 -}}