Skip to content

Commit 6cc47a0

Browse files
fuziontechmacobo
andauthored
Add CLICKHOUSE_PORT as option for externalClickhouse configs (#415)
* Add CLICKHOUSE_PORT as option for externalClickhouse configs * Fix tests/env Co-authored-by: Karl-Aksel Puulmann <[email protected]>
1 parent a60500a commit 6cc47a0

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

charts/posthog/templates/_clickhouse.tpl

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
{{- else -}}
1919
- name: CLICKHOUSE_HOST
2020
value: {{ required "externalClickhouse.host is required if not clickhouse.enabled" .Values.externalClickhouse.host | quote }}
21+
- name: CLICKHOUSE_PORT
22+
value: {{ .Values.externalClickhouse.port | quote }}
2123
- name: CLICKHOUSE_CLUSTER
2224
value: {{ required "externalClickhouse.cluster is required if not clickhouse.enabled" .Values.externalClickhouse.cluster | quote }}
2325
- name: CLICKHOUSE_DATABASE

charts/posthog/tests/__snapshot__/_clickhouse.tpl.yaml.snap

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ should render with external clickhouse:
3434
1: |
3535
- name: CLICKHOUSE_HOST
3636
value: foo.bar.net
37+
- name: CLICKHOUSE_PORT
38+
value: "9000"
3739
- name: CLICKHOUSE_CLUSTER
3840
value: somecluster
3941
- name: CLICKHOUSE_DATABASE
@@ -50,6 +52,8 @@ should render with external clickhouse with more custom settings:
5052
1: |
5153
- name: CLICKHOUSE_HOST
5254
value: foo.bar.net
55+
- name: CLICKHOUSE_PORT
56+
value: "9000"
5357
- name: CLICKHOUSE_CLUSTER
5458
value: customCluster
5559
- name: CLICKHOUSE_DATABASE
@@ -66,6 +70,8 @@ should render with external clickhouse with secrets:
6670
1: |
6771
- name: CLICKHOUSE_HOST
6872
value: foo.bar.net
73+
- name: CLICKHOUSE_PORT
74+
value: "9000"
6975
- name: CLICKHOUSE_CLUSTER
7076
value: somecluster
7177
- name: CLICKHOUSE_DATABASE

charts/posthog/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ clickhouse:
737737
externalClickhouse:
738738
# -- Host of the external cluster. This is required when clickhouse.enabled is false
739739
host:
740+
# -- Port of the external cluster.
741+
port: 9000
740742
# -- Name of the external cluster to run DDL queries on. This is required when clickhouse.enabled is false
741743
cluster:
742744
# -- Database name for the external cluster

0 commit comments

Comments
 (0)