mirror of
https://github.com/outbackdingo/qdrant-helm.git
synced 2026-01-27 10:20:18 +00:00
Propagate signals to qdrant by using /bin/bash (#91)
This commit is contained in:
@@ -8,13 +8,13 @@ data:
|
||||
SET_INDEX=${HOSTNAME##*-}
|
||||
{{- if and (.Values.snapshotRestoration.enabled) (eq (.Values.replicaCount | quote) (1 | quote)) }}
|
||||
echo "Starting initializing for pod $SET_INDEX and snapshots restoration"
|
||||
./entrypoint.sh {{ range .Values.snapshotRestoration.snapshots }} --snapshot {{ . }} {{ end }}
|
||||
exec ./entrypoint.sh {{ range .Values.snapshotRestoration.snapshots }} --snapshot {{ . }} {{ end }}
|
||||
{{- else }}
|
||||
echo "Starting initializing for pod $SET_INDEX"
|
||||
if [ "$SET_INDEX" = "0" ]; then
|
||||
./entrypoint.sh --uri 'http://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:6335'
|
||||
exec ./entrypoint.sh --uri 'http://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:6335'
|
||||
else
|
||||
./entrypoint.sh --bootstrap 'http://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:6335' --uri 'http://{{ include "qdrant.fullname" . }}-'"$SET_INDEX"'.{{ include "qdrant.fullname" . }}-headless:6335'
|
||||
exec ./entrypoint.sh --bootstrap 'http://{{ include "qdrant.fullname" . }}-0.{{ include "qdrant.fullname" . }}-headless:6335' --uri 'http://{{ include "qdrant.fullname" . }}-'"$SET_INDEX"'.{{ include "qdrant.fullname" . }}-headless:6335'
|
||||
fi
|
||||
{{ end }}
|
||||
production.yaml: |
|
||||
|
||||
@@ -76,7 +76,7 @@ spec:
|
||||
- name: {{ .name }}
|
||||
value: {{ .value | quote }}
|
||||
{{- end }}
|
||||
command: ["/bin/sh", "-c"]
|
||||
command: ["/bin/bash", "-c"]
|
||||
{{- with .Values.args }}
|
||||
args:
|
||||
{{- toYaml . | nindent 10 }}
|
||||
@@ -233,12 +233,11 @@ spec:
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
storageClassName: {{ .Values.persistence.storageClassName }}
|
||||
storageClassName: {{ .Values.persistence.storageClassName }}
|
||||
accessModes:
|
||||
{{- range .Values.persistence.accessModes }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size | quote }}
|
||||
|
||||
storage: {{ .Values.persistence.size | quote }}
|
||||
|
||||
@@ -20,4 +20,12 @@ setup_file() {
|
||||
[ $status -eq 0 ]
|
||||
[[ "${output}" =~ .*INFO.* ]]
|
||||
[[ ! "${output}" =~ .*ERR.* ]]
|
||||
}
|
||||
}
|
||||
|
||||
@test "SIGTERM signals are propagated to qdrant" {
|
||||
run kubectl rollout restart sts/qdrant -n qdrant-helm-integration
|
||||
[ $status -eq 0 ]
|
||||
# If signals aren't working, this will take >30 seconds and time out
|
||||
run kubectl rollout status statefulset qdrant -n qdrant-helm-integration --timeout=15s
|
||||
[ $status -eq 0 ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user