Skip to content

Commit 2fe8a22

Browse files
Automated Pipeline - Infra - Generate workload identityjoshleecreates
authored andcommitted
Add the ability to create extra volume mounts on the clickhouse pods
1 parent 9529cf9 commit 2fe8a22

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

charts/clickhouse/templates/_helpers.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,16 @@ Pod Template Base
114114
- name: CLICKHOUSE_ALWAYS_RUN_INITDB_SCRIPTS
115115
value: "true"
116116
{{- end }}
117+
{{- end }}
118+
{{- if or .Values.clickhouse.initScripts.enabled .Values.clickhouse.extraVolumeMounts }}
117119
volumeMounts:
120+
{{ if .Values.clickhouse.initScripts.enabled }}
118121
- name: init-scripts-configmap
119122
mountPath: /docker-entrypoint-initdb.d
123+
{{- end }}
124+
{{- with .Values.clickhouse.extraVolumeMounts }}
125+
{{- toYaml . | nindent 16 }}
126+
{{- end }}
120127
{{- end }}
121128
resources:
122129
{{- toYaml .Values.clickhouse.resources | nindent 16 }}

charts/clickhouse/values.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@
314314
"type": "object"
315315
}
316316
},
317+
"extraVolumeMounts": {
318+
"type": "array",
319+
"description": "Extra volume mounts for Clickhouse pod.",
320+
"items": {
321+
"type": "object"
322+
}
323+
},
317324
"resources": {
318325
"type": "object",
319326
"description": "Resource requests/limits for ClickHouse containers."

charts/clickhouse/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ clickhouse:
237237
# -- Extra volumes for clickhouse pods
238238
extraVolumes: []
239239

240+
# -- Extra volume mounts for clickhouse pods
241+
extraVolumeMounts: []
242+
240243
# -- Init scripts ConfigMap configuration
241244
initScripts:
242245
# -- Set to true to enable init scripts feature

0 commit comments

Comments
 (0)