From 9cf017e827babb768e84d300729b55cf835ffe14 Mon Sep 17 00:00:00 2001 From: Liang Huang Date: Thu, 6 Jun 2024 16:55:12 +0800 Subject: [PATCH] . Signed-off-by: Liang Huang --- tests/scripts/uninstall_milvus.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scripts/uninstall_milvus.sh b/tests/scripts/uninstall_milvus.sh index d9ec1b03c3f75..16f8f2bf548ce 100755 --- a/tests/scripts/uninstall_milvus.sh +++ b/tests/scripts/uninstall_milvus.sh @@ -11,6 +11,7 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. + # Exit immediately for non zero status set -e # Print commands @@ -83,4 +84,4 @@ MILVUS_LABELS2="release=${MILVUS_HELM_RELEASE_NAME}" # Clean up pvc kubectl delete pvc --wait -n "${MILVUS_HELM_NAMESPACE}" $(kubectl get pvc -n "${MILVUS_HELM_NAMESPACE}" -l "${MILVUS_LABELS1}" -o jsonpath='{range.items[*]}{.metadata.name} ') || true -kubectl delete pvc --wait -n "${MILVUS_HELM_NAMESPACE}" $(kubectl get pvc -n "${MILVUS_HELM_NAMESPACE}" -l "${MILVUS_LABELS2}" -o jsonpath='{range.items[*]}{.metadata.name} ') || true \ No newline at end of file +kubectl delete pvc --wait -n "${MILVUS_HELM_NAMESPACE}" $(kubectl get pvc -n "${MILVUS_HELM_NAMESPACE}" -l "${MILVUS_LABELS2}" -o jsonpath='{range.items[*]}{.metadata.name} ') || true