File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff line change 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."
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments