From 2fa2e846ec86019f7e1baef9fcb9590a8b648cdb 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/Chart.yaml | 2 +- charts/bbgo/templates/deployment.yaml | 4 ++++ charts/bbgo/values.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/bbgo/Chart.yaml b/charts/bbgo/Chart.yaml index f932e0c34..92d9fcbb4 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.3.4 +version: 0.3.5 # 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 diff --git a/charts/bbgo/templates/deployment.yaml b/charts/bbgo/templates/deployment.yaml index 7809e4756..e12b974dc 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 2cd8b419c..4c8c40dfc 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