Skip to content

Commit f4cfd54

Browse files
author
Floris Groenendijk
committed
Added volumes and volume mounts variables to be able to use wordforms.txt and stopwords.txt
1 parent a4b004f commit f4cfd54

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

charts/manticoresearch/templates/manticore-balancer.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ spec:
9292
- name: config-volume
9393
mountPath: {{ .Values.balancer.config.path }}
9494
subPath: manticore.conf
95+
{{- range .Values.balancer.volumeMounts }}
96+
- name: {{ .name }}
97+
mountPath: {{ .mountPath }}
98+
{{- if .subPath }}
99+
subPath: {{ .subPath }}
100+
{{- end}}
101+
{{- end }}
95102
resources:
96103
{{- toYaml .Values.balancer.resources | nindent 10 }}
97104
{{- if or .Values.exporter.enabled .Values.serviceMonitor.enabled }}
@@ -120,6 +127,11 @@ spec:
120127
- name: config-volume
121128
configMap:
122129
name: {{ include "manticoresearch.fullname" . }}-balancer-config
130+
{{- range .Values.balancer.volumes }}
131+
- name: {{ .name }}
132+
configMap:
133+
name: {{ .configMap.name }}
134+
{{- end }}
123135
{{- with .Values.balancer.nodeSelector }}
124136
nodeSelector:
125137
{{- toYaml . | nindent 8 }}

charts/manticoresearch/templates/manticore-worker.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ spec:
104104
- name: config-volume
105105
mountPath: {{ .Values.worker.config.path }}
106106
subPath: manticore.conf
107+
{{- range .Values.worker.volumeMounts }}
108+
- name: {{ .name }}
109+
mountPath: {{ .mountPath }}
110+
{{- if .subPath }}
111+
subPath: {{ .subPath }}
112+
{{- end}}
113+
{{- end }}
107114
resources:
108115
{{- toYaml .Values.worker.resources | nindent 10 }}
109116
{{- if or .Values.exporter.enabled .Values.serviceMonitor.enabled }}
@@ -132,6 +139,11 @@ spec:
132139
- name: config-volume
133140
configMap:
134141
name: {{ include "manticoresearch.fullname" . }}-worker-config
142+
{{- range .Values.worker.volumes }}
143+
- name: {{ .name }}
144+
configMap:
145+
name: {{ .configMap.name }}
146+
{{- end }}
135147
{{- with .Values.worker.nodeSelector }}
136148
nodeSelector:
137149
{{- toYaml . | nindent 8 }}

charts/manticoresearch/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ balancer:
4747
shutdown_timeout = 25s
4848
auto_optimize = 0
4949
}
50+
volumeMounts: []
5051
resources: {}
5152
# We usually recommend not to specify default resources and to leave this as a conscious
5253
# choice for the user. This also increases chances charts run on environments with little
@@ -131,6 +132,7 @@ worker:
131132
shutdown_timeout = 25s
132133
auto_optimize = 0
133134
}
135+
volumeMounts: []
134136
resources: {}
135137
# See comment on balancer.resources
136138
nodeSelector: {}

0 commit comments

Comments
 (0)