From 1d9edbe379c3c86bd2b496de4d4d490793c67b2e Mon Sep 17 00:00:00 2001 From: chechia Date: Thu, 20 Jul 2023 17:59:54 +0800 Subject: [PATCH] FEATURE: add log formatter flag in chart value --- charts/bbgo/templates/deployment.yaml | 4 ++++ charts/bbgo/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/charts/bbgo/templates/deployment.yaml b/charts/bbgo/templates/deployment.yaml index 7809e4756c..e12b974dc5 100644 --- a/charts/bbgo/templates/deployment.yaml +++ b/charts/bbgo/templates/deployment.yaml @@ -54,6 +54,10 @@ spec: {{- if .Values.webserver.enabled }} - "--enable-webserver" {{- end }} + {{- if .Values.logFormatter.enabled }} + - "--log-formatter" + - {{ .Values.logFormatter.format | quote }} + {{- end }} {{- if .Values.grpc.enabled }} - "--enable-grpc" - "--grpc-bind" diff --git a/charts/bbgo/values.yaml b/charts/bbgo/values.yaml index 2cd8b419c6..4c8c40dfc7 100644 --- a/charts/bbgo/values.yaml +++ b/charts/bbgo/values.yaml @@ -78,6 +78,10 @@ metrics: enabled: false port: 9090 +logFormatter: + enabled: false + format: json + grpc: enabled: false port: 50051