File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff 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 : {}
You can’t perform that action at this time.
0 commit comments