wrap cronjob with sync.enabled var

This commit is contained in:
c9s 2024-08-23 15:19:07 +08:00
parent 02ff04cfb5
commit 106a01e508
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # 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 # 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 # incremented each time you make changes to the application. Versions are not expected to

View File

@ -1,3 +1,4 @@
{{- if .Values.sync.enabled }}
--- ---
apiVersion: batch/v1 apiVersion: batch/v1
kind: CronJob kind: CronJob
@ -51,3 +52,4 @@ spec:
{{- else }} {{- else }}
name: {{ include "bbgo.fullname" . }} name: {{ include "bbgo.fullname" . }}
{{- end }} {{- end }}
{{- end -}}