Skip to content

Commit

Permalink
feat(query): support config session settings on values.yaml (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiHanZ authored Aug 3, 2024
1 parent b1c12cf commit 6a55ee6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions charts/databend-query/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ data:
{{- end }}
{{- end }}
[query.settings]
{{- range $field, $value := .Values.config.query.settings }}
{{- if (kindIs "string" $value) }}
{{ $field }} = {{ $value | quote }}
{{- else }}
{{ $field }} = {{ $value }}
{{- end }}
{{- end }}
[log]
[log.file]
on = {{ .Values.config.log.file.enabled }}
Expand Down
7 changes: 6 additions & 1 deletion charts/databend-query/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ config:

extra:
max_active_sessions: 256
databend_enterprise_license: ""

# NOTE: user `root` is already built-in, will be ignored if defined here
users: []
Expand All @@ -80,6 +81,10 @@ config:
# # sha1sum: echo -n "password" | sha1sum | cut -d' ' -f1 | xxd -r -p | sha1sum
# authType: double_sha1_password
# authString: 3081f32caef285c232d066033c89a78d88a6d8a5 # databend

# NOTE: use it for on premise session parameters
settings:
timezone: "UTC"

# [log]
log:
Expand Down Expand Up @@ -114,7 +119,7 @@ config:
# [storage]
storage:
type: "s3"

allow_insecure: false
# [storage.s3]
s3:
bucket: "databend"
Expand Down

0 comments on commit 6a55ee6

Please sign in to comment.