chart: add env vars section into the chart

This commit is contained in:
c9s 2024-08-26 13:03:58 +08:00
parent 7fdb3f671f
commit 3013e37a38
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 18 additions and 0 deletions

View File

@ -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 }}

View File

@ -89,6 +89,12 @@ grpc:
debug:
enabled: false
environment: dev
# this set ENABLE_RBT_ORDERBOOK env
rbTreeOrderbook:
enabled: false
sync:
enabled: false
schedule: "0 * * * *"