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 * * * *"