Skip to content

Commit 2e89053

Browse files
authored
Merge pull request #259 from weaviate/raft-update-RAFT_JOIN
Updated RAFT_JOIN to use pod_prefix value
2 parents c4237e5 + df4935c commit 2e89053

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

weaviate/templates/_helpers.tpl

+5-4
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
{{- end -}}
145145

146146

147-
{{/*
147+
{{/*
148148
Return Image pull secret Names
149149
Usage:
150150
{{- include "image.pullSecrets" (dict "pullSecrets" path_to_image_pullSecrets) | nindent 6 }}
@@ -188,7 +188,7 @@ password: {{ randAlphaNum 32 | b64enc | quote }}
188188
{{- end -}}
189189

190190

191-
{{/*
191+
{{/*
192192
Return PriorityClassName
193193
Usage:
194194
{{- include "pod.priorityClassName" ( dict "global" .Values.path.to.global.priorityClassName "priorityClassName" .Values.path.to.priorityClassName) | nindent 6 }}
@@ -217,7 +217,7 @@ Raft cluster configuration settings
217217
{{- $metada_only_voters := false -}}
218218
{{- if not (empty .Values.env.RAFT_METADATA_ONLY_VOTERS) -}}
219219
{{- $metada_only_voters = .Values.env.RAFT_METADATA_ONLY_VOTERS -}}
220-
{{- end -}}
220+
{{- end -}}
221221
{{- if empty .Values.env.RAFT_BOOTSTRAP_EXPECT -}}
222222
{{- if ge $replicas 10 -}}
223223
{{- $voters = 5 -}}
@@ -232,9 +232,10 @@ Raft cluster configuration settings
232232
{{- end -}}
233233
{{- if empty .Values.env.RAFT_JOIN -}}
234234
{{- $nodes := list -}}
235+
{{- $pod_prefix := "weaviate" -}}
235236
{{- range $i := until $voters -}}
236237
{{- $node_name := list -}}
237-
{{- $node_name = append $node_name "weaviate" -}}
238+
{{- $node_name = append $node_name $pod_prefix -}}
238239
{{- $node_name = append $node_name $i -}}
239240
{{- $nodes = append $nodes (join "-" $node_name) -}}
240241
{{- end -}}

0 commit comments

Comments
 (0)