Skip to content

Commit

Permalink
feat: support config session settings on values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiHanZ committed Aug 1, 2024
1 parent b1c12cf commit 0d852cd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 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 @@ -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
15 changes: 6 additions & 9 deletions 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 All @@ -93,14 +98,6 @@ config:

# [meta]
meta:
# If databend-meta is hosted in the same cluster as databend-data, you can enable this to generate endpoints in a K8s native way.
generateEndpoints: false
# Databend-meta replica count
replicas: 3
# Databend-meta port if you need to change it
port: 9191
# If databend-meta is located in the same cluster, but a different namespace, specify it here
namespace: ""
# Set endpoints to use remote meta service
endpoints:
# <podName>.<serviceName>.<namespace>.svc.cluster.local:9191
Expand All @@ -114,7 +111,7 @@ config:
# [storage]
storage:
type: "s3"

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

0 comments on commit 0d852cd

Please sign in to comment.