From b45e2dc335a95722c9f028132481977df52dc354 Mon Sep 17 00:00:00 2001 From: hantmac Date: Wed, 13 Nov 2024 20:50:39 +0800 Subject: [PATCH] fix: lables optional --- charts/databend-query/templates/configmap.yaml | 8 ++++++++ charts/databend-query/values.yaml | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/charts/databend-query/templates/configmap.yaml b/charts/databend-query/templates/configmap.yaml index 202b6cf..9376b34 100644 --- a/charts/databend-query/templates/configmap.yaml +++ b/charts/databend-query/templates/configmap.yaml @@ -58,15 +58,23 @@ data: otlp_endpoint = {{ .Values.config.log.query.otlpEndpoint | quote }} otlp_protocol = {{ .Values.config.log.query.otlpProtocol | default "http" | quote }} [log.query.otlp_labels] + {{- if .Values.config.log.query.otlp_labels.tenant }} tenant = {{ .Values.config.log.query.otlp_labels.tenant | quote }} + {{- end }} + {{- if .Values.config.log.query.otlp_labels.warehouse }} warehouse = {{ .Values.config.log.query.otlp_labels.warehouse | quote }} + {{- end }} [log.profile] on = {{ .Values.config.log.profile.enabled }} otlp_endpoint = {{ .Values.config.log.profile.otlp_endpoint | quote }} otlp_protocol = {{ .Values.config.log.profile.otlp_protocol | default "http" | quote }} [log.profile.otlp_labels] + {{- if .Values.config.log.profile.otlp_labels.tenant }} tenant = {{ .Values.config.log.profile.otlp_labels.tenant | quote }} + {{- end }} + {{- if .Values.config.log.profile.otlp_labels.warehouse }} warehouse = {{ .Values.config.log.profile.otlp_labels.warehouse | quote }} + {{- end }} [meta] {{- if .Values.config.meta.generateEndpoints }} diff --git a/charts/databend-query/values.yaml b/charts/databend-query/values.yaml index 57dcd00..1eebbc3 100644 --- a/charts/databend-query/values.yaml +++ b/charts/databend-query/values.yaml @@ -104,16 +104,10 @@ config: enabled: false otlp_endpoint: "" otlp_protocol: "http" - otlp_labels: - tenant: "" - warehouse: "" profile: enabled: false otlp_endpoint: "" otlp_protocol: "http" - otlp_labels: - tenant: "" - warehouse: "" # [meta] meta: