From 3013e37a38f9cf143a4ed33464ca48c7082db6f5 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 26 Aug 2024 13:03:58 +0800 Subject: [PATCH 1/2] chart: add env vars section into the chart --- charts/bbgo/templates/deployment.yaml | 12 ++++++++++++ charts/bbgo/values.yaml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/charts/bbgo/templates/deployment.yaml b/charts/bbgo/templates/deployment.yaml index e12b974dc..44c2a6aaa 100644 --- a/charts/bbgo/templates/deployment.yaml +++ b/charts/bbgo/templates/deployment.yaml @@ -98,6 +98,18 @@ spec: mountPath: /config # the "env" entries will override the environment variables from envFrom. + env: + - name: USE_MARKETS_CACHE_IN_MEMORY + value: "true" + {{- if .Values.environment }} + - name: BBGO_ENV + value: {{ .Values.environment | quote }} + {{- end }} + + {{- if .Values.rbTreeOrderbook.enabled }} + - name: ENABLE_RBT_ORDERBOOK + value: "true" + {{- end }} envFrom: - secretRef: name: {{ .Values.dotenv.secret | default .Release.Name }} diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index b444efa25..0866f3eca 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -89,6 +89,12 @@ grpc: debug: enabled: false +environment: dev + +# this set ENABLE_RBT_ORDERBOOK env +rbTreeOrderbook: + enabled: false + sync: enabled: false schedule: "0 * * * *" From f59ff90c5e1b7ff5f63dac05d50db9e6c6534ca6 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 26 Aug 2024 13:04:45 +0800 Subject: [PATCH 2/2] bump chart version --- charts/bbgo/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/bbgo/Chart.yaml b/charts/bbgo/Chart.yaml index f67fd1e3a..39ea211a8 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.2 +version: 0.4.3 # 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