openreplay/scripts/helmcharts/databases/charts/clickhouse/templates/configmap.yaml
rjshrjndrn 3272f5b9fd refactor(clickhouse): split server and user config
Split the ClickHouse configuration into separate ConfigMaps for server
and user configurations. This allows more granular management of the
different configuration types and proper mounting to their respective
paths.

- Created separate serverConfig and userConfig under configOverride
- Added user-default.xml under userConfig
- Updated StatefulSet to mount each ConfigMap separately

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
2025-04-11 17:20:26 +02:00

20 lines
438 B
YAML

---
apiVersion: v1
kind: ConfigMap
metadata:
name: clickhouse-server-override
data:
{{- range $filename, $content := .Values.configOverride.serverConfig }}
{{ $filename }}: |-
{{ $content | indent 4 }}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: clickhouse-user-override
data:
{{- range $filename, $content := .Values.configOverride.userConfig }}
{{ $filename }}: |-
{{ $content | indent 4 }}
{{- end }}