Skip to content

Commit 973b937

Browse files
ugoTartanLeGrand
authored andcommitted
feat: update ClickHouse configuration for single node and cluster support
1 parent 2e10dee commit 973b937

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

charts/sentry/templates/snuba/_helper-snuba.tpl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,15 @@ settings.py: |
7676
The default clickhouse installation runs in distributed mode, while the external
7777
clickhouse configured can be configured any way you choose
7878
*/}}
79-
"single_node": False
79+
{{- if and .Values.externalClickhouse.singleNode (not .Values.clickhouse.enabled) }}
80+
"single_node": True,
81+
{{- else }}
82+
"single_node": False,
83+
{{- end }}
84+
{{- if or .Values.clickhouse.enabled (not .Values.externalClickhouse.singleNode) }}
85+
"cluster_name": {{ include "sentry.clickhouse.cluster.name" . | quote }},
86+
"distributed_cluster_name": {{ include "sentry.clickhouse.cluster.name" . | quote }},
87+
{{- end }}
8088
},
8189
]
8290

0 commit comments

Comments
 (0)