From 069d7b7ddafd6ae3c1d7387dfbe00cb67cb7a31c Mon Sep 17 00:00:00 2001 From: Jenny Li Date: Mon, 8 Nov 2021 20:26:01 +0800 Subject: [PATCH] [skip ci] Add comment for uninstall_helm script (#11443) Signed-off-by: Jenny Li --- tests/scripts/uninstall_milvus.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/uninstall_milvus.sh b/tests/scripts/uninstall_milvus.sh index f53d5f53d4..c85c7d7921 100755 --- a/tests/scripts/uninstall_milvus.sh +++ b/tests/scripts/uninstall_milvus.sh @@ -21,5 +21,7 @@ helm uninstall -n "${MILVUS_HELM_NAMESPACE}" "${MILVUS_HELM_RELEASE_NAME}" MILVUS_LABELS1="app.kubernetes.io/instance=${MILVUS_HELM_RELEASE_NAME}" MILVUS_LABELS2="release=${MILVUS_HELM_RELEASE_NAME}" + +# Clean up pvc kubectl delete pvc -n "${MILVUS_HELM_NAMESPACE}" $(kubectl get pvc -n "${MILVUS_HELM_NAMESPACE}" -l "${MILVUS_LABELS1}" -o jsonpath='{range.items[*]}{.metadata.name} ') || true kubectl delete pvc -n "${MILVUS_HELM_NAMESPACE}" $(kubectl get pvc -n "${MILVUS_HELM_NAMESPACE}" -l "${MILVUS_LABELS2}" -o jsonpath='{range.items[*]}{.metadata.name} ') || true