Skip to content

Commit 68e56d7

Browse files
authored
Merge pull request #1713 from c9s/c9s/chart/env-section
2 parents 3ec509b + f59ff90 commit 68e56d7

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

charts/bbgo/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.4.2
18+
version: 0.4.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/bbgo/templates/deployment.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ spec:
9898
mountPath: /config
9999

100100
# the "env" entries will override the environment variables from envFrom.
101+
env:
102+
- name: USE_MARKETS_CACHE_IN_MEMORY
103+
value: "true"
104+
{{- if .Values.environment }}
105+
- name: BBGO_ENV
106+
value: {{ .Values.environment | quote }}
107+
{{- end }}
108+
109+
{{- if .Values.rbTreeOrderbook.enabled }}
110+
- name: ENABLE_RBT_ORDERBOOK
111+
value: "true"
112+
{{- end }}
101113
envFrom:
102114
- secretRef:
103115
name: {{ .Values.dotenv.secret | default .Release.Name }}

charts/bbgo/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ grpc:
8989
debug:
9090
enabled: false
9191

92+
environment: dev
93+
94+
# this set ENABLE_RBT_ORDERBOOK env
95+
rbTreeOrderbook:
96+
enabled: false
97+
9298
sync:
9399
enabled: false
94100
schedule: "0 * * * *"

0 commit comments

Comments
 (0)