From f3e1643ffe8f63188deeea30a8963dbd67937d17 Mon Sep 17 00:00:00 2001 From: Y-Rookie Date: Fri, 25 Oct 2024 16:44:06 +0800 Subject: [PATCH] fix typo --- addons/qdrant/scripts/qdrant-setup.sh | 2 +- addons/qdrant/templates/componentdefinition.yaml | 5 +---- addons/qdrant/values.yaml | 14 ++------------ 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/addons/qdrant/scripts/qdrant-setup.sh b/addons/qdrant/scripts/qdrant-setup.sh index 8ac6439cb..bf49caf14 100644 --- a/addons/qdrant/scripts/qdrant-setup.sh +++ b/addons/qdrant/scripts/qdrant-setup.sh @@ -40,7 +40,7 @@ start_server() { exit 1 fi - if [ "$current_pod_fqdn" == "$min_lexicographical_pod_name" ]; then + if [ "$current_pod_fqdn" == "$boostrap_node_fqdn" ]; then ./qdrant --uri "http://${current_pod_fqdn}:6335" else until ./tools/curl http://${boostrap_node_fqdn}:6333/cluster; do diff --git a/addons/qdrant/templates/componentdefinition.yaml b/addons/qdrant/templates/componentdefinition.yaml index 0d9886f62..14f7ed86a 100644 --- a/addons/qdrant/templates/componentdefinition.yaml +++ b/addons/qdrant/templates/componentdefinition.yaml @@ -39,8 +39,6 @@ spec: - name: data needSnapshot: true vars: - - name: CLUSTER_DOMAIN - value: "{{ .Values.clusterDomain }}" - name: QDRANT_POD_NAME_LIST valueFrom: componentVarRef: @@ -58,8 +56,7 @@ spec: command: - /bin/sh - -c - - | - {{- .Files.Get "scripts/qdrant-member-leave.sh" | nindent 12 }} + - /qdrant/scripts/qdrant-member-leave.sh targetPodSelector: Any container: qdrant runtime: diff --git a/addons/qdrant/values.yaml b/addons/qdrant/values.yaml index 9dfdb8591..38ed3e0c3 100644 --- a/addons/qdrant/values.yaml +++ b/addons/qdrant/values.yaml @@ -2,14 +2,9 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. - nameOverride: "" -fullnameOverride: "" - -## @param commonLabels Labels to add to all deployed objects -## -commonLabels: {} +fullnameOverride: "" ## @param application images ## @@ -22,10 +17,5 @@ image: repository: apecloud/curl-jq tag: 0.1.0 -## @param debugEnabled enables containers' debug logging -## -debugEnabled: true - +## @param data volume mount path dataMountPath: /qdrant/storage - -clusterDomain: ".cluster.local"