Skip to content

Commit 2eb60bf

Browse files
authored
Add namespaceDomainPattern to Helm chart (#61)
* add namespaceDomainPattern configuration * fix docs
1 parent 8e0ecd5 commit 2eb60bf

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

charts/clickhouse/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ EOSQL
155155

156156
| Key | Type | Default | Description |
157157
|-----|------|---------|-------------|
158+
| namespaceDomainPattern | string | | Custom domain pattern used for DNS names of `Service` and `Pod` resources. Typically defined by the custom cluster domain of the Kubernetes cluster. The pattern follows the `%s` C-style printf format, e.g. '%s.svc.my.test'. If not specified, the default namespace domain suffix is `.svc.cluster.local`. |
158159
| clickhouse.antiAffinity | bool | `false` | |
159160
| clickhouse.clusterSecret | object | `{"auto":true,"enabled":false,"value":"","valueFrom":{"secretKeyRef":{"key":"secret","name":""}}}` | Cluster secret configuration for secure inter-node communication |
160161
| clickhouse.clusterSecret.auto | bool | `true` | Auto-generate cluster secret (recommended for security) |

charts/clickhouse/templates/chi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,8 @@ spec:
202202
{{- tpl $extraUsers . | nindent 10 }}
203203
{{- end }}
204204
{{- end }}
205+
{{- if not (empty .Values.namespaceDomainPattern) }}
206+
namespaceDomainPattern: {{ .Values.namespaceDomainPattern | quote }}
207+
{{- end }}
205208

206209
{{ include "validate.clickhouse.keeper" . }}

charts/clickhouse/templates/chk.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,7 @@ spec:
129129
cpu: "{{ $.Values.keeper.resources.cpuLimitsMs }}"
130130
memory: "{{ $.Values.keeper.resources.memoryLimitsMiB }}"
131131
{{- end }}
132+
{{- if not (empty .Values.namespaceDomainPattern) }}
133+
namespaceDomainPattern: {{ .Values.namespaceDomainPattern | quote }}
134+
{{- end }}
132135
{{- end }}

charts/clickhouse/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"type": "string",
1111
"description": "Overrides the full name of the chart."
1212
},
13+
"namespaceDomainPattern": {
14+
"type": "string",
15+
"description": "Custom cluster domain of Kubernetes cluster."
16+
},
1317
"clickhouse": {
1418
"type": "object",
1519
"properties": {

charts/clickhouse/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ nameOverride: ""
44
# @ignore
55
fullnameOverride: ""
66

7+
# -- Custom domain pattern used for DNS names of `Service` and `Pod` resources.
8+
# Typically defined by the custom cluster domain of the Kubernetes cluster.
9+
# The pattern follows the `%s` C-style printf format, e.g. '%s.svc.my.test'.
10+
# If not specified, the default namespace domain suffix is `.svc.cluster.local`.
11+
namespaceDomainPattern: ""
12+
713
# Configure ClickHouse Installation and Pod Template
814
clickhouse:
915
defaultUser:

0 commit comments

Comments
 (0)