Skip to content

Commit 8c2b3bf

Browse files
renamed helper variables for extra clarity
1 parent aa3e848 commit 8c2b3bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

charts/qdrant/templates/_helpers.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ local.yaml: {{ printf "service:\n read_only_api_key: %s" $readOnlyApiKey | b64e
100100
{{/*
101101
Protocol to use for inter cluster communication
102102
*/}}
103-
{{- define "qdrant.protocol" -}}
103+
{{- define "qdrant.p2p.protocol" -}}
104104
{{ if eq (.Values.config.cluster.p2p.enable_tls | toJson) "true" -}}
105105
https
106106
{{- else -}}
@@ -111,6 +111,6 @@ http
111111
{{/*
112112
Port to use for inter cluster communication
113113
*/}}
114-
{{- define "qdrant.port" -}}
114+
{{- define "qdrant.p2p.port" -}}
115115
{{- default 6335 .Values.config.cluster.p2p.port -}}
116116
{{- end -}}

charts/qdrant/templates/configmap.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ data:
1010
SET_INDEX=${HOSTNAME##*-}
1111
{{- if and (.Values.snapshotRestoration.enabled) (eq (.Values.replicaCount | quote) (1 | quote)) }}
1212
echo "Starting initializing for pod $SET_INDEX and snapshots restoration"
13-
exec ./entrypoint.sh --uri '{{ include "qdrant.protocol" . }}://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.port" . }}' {{ range .Values.snapshotRestoration.snapshots }} --snapshot {{ . }} {{ end }}
13+
exec ./entrypoint.sh --uri '{{ include "qdrant.p2p.protocol" . }}://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.p2p.port" . }}' {{ range .Values.snapshotRestoration.snapshots }} --snapshot {{ . }} {{ end }}
1414
{{- else }}
1515
echo "Starting initializing for pod $SET_INDEX"
1616
if [ "$SET_INDEX" = "0" ]; then
17-
exec ./entrypoint.sh --uri '{{ include "qdrant.protocol" . }}://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.port" . }}'
17+
exec ./entrypoint.sh --uri '{{ include "qdrant.p2p.protocol" . }}://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.p2p.port" . }}'
1818
else
19-
exec ./entrypoint.sh --bootstrap '{{ include "qdrant.protocol" . }}://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.port" . }}' --uri '{{ include "qdrant.protocol" . }}://{{ include "qdrant.fullname" . }}-'"$SET_INDEX"'.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.port" . }}'
19+
exec ./entrypoint.sh --bootstrap '{{ include "qdrant.p2p.protocol" . }}://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.p2p.port" . }}' --uri '{{ include "qdrant.p2p.protocol" . }}://{{ include "qdrant.fullname" . }}-'"$SET_INDEX"'.{{ include "qdrant.fullname" . }}-headless:{{ include "qdrant.p2p.port" . }}'
2020
fi
2121
{{ end }}
2222
production.yaml: |

0 commit comments

Comments
 (0)