Skip to content

Commit

Permalink
make lables map
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Nov 14, 2024
1 parent 1f1b0a6 commit 522c836
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions charts/databend-query/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,10 @@ data:
on = {{ .Values.config.log.query.enabled }}
otlp_endpoint = {{ .Values.config.log.query.otlp_endpoint | quote }}
otlp_protocol = {{ .Values.config.log.query.otlp_protocol | default "http" | quote }}
{{- with .Values.config.log.query.otlp_labels }}
[log.query.otlp_labels]
{{- if .tenant }}
tenant = {{ .tenant | quote }}
{{- end }}
{{- if .warehouse }}
warehouse = {{ .warehouse | quote }}
{{- with .Values.config.log.profile.otlp_labels }}
[log.profile.otlp_labels]
{{- range $key, $value := . }}
{{ $key }} = {{ $value | quote }}
{{- end }}
{{- end }}
[log.profile]
Expand All @@ -72,11 +69,8 @@ data:
otlp_protocol = {{ .Values.config.log.profile.otlp_protocol | default "http" | quote }}
{{- with .Values.config.log.profile.otlp_labels }}
[log.profile.otlp_labels]
{{- if .tenant }}
tenant = {{ .tenant | quote }}
{{- end }}
{{- if .warehouse }}
warehouse = {{ .warehouse | quote }}
{{- range $key, $value := . }}
{{ $key }} = {{ $value | quote }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 522c836

Please sign in to comment.