Skip to content

Commit

Permalink
fix: lables optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Nov 13, 2024
1 parent 51e7916 commit b45e2dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions charts/databend-query/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 0 additions & 6 deletions charts/databend-query/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b45e2dc

Please sign in to comment.