From 5420595d030c5ce6528d7f3b67e476e2c57b2c23 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 11 Apr 2024 17:06:11 +0000 Subject: [PATCH] tests/k8s: Add uninstall kbs client command function This PR adds the function to uninstall kbs client command function specially when we are running with baremetal devices. Fixes #9460 Signed-off-by: Gabriela Cervantes --- tests/integration/kubernetes/confidential_kbs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration/kubernetes/confidential_kbs.sh b/tests/integration/kubernetes/confidential_kbs.sh index c3c03687f4..c09a05cf59 100644 --- a/tests/integration/kubernetes/confidential_kbs.sh +++ b/tests/integration/kubernetes/confidential_kbs.sh @@ -151,6 +151,12 @@ kbs_install_cli() { popd } +kbs_uninstall_cli() { + pushd "${COCO_KBS_DIR}" + sudo make uninstall + popd +} + # Delete the kbs on Kubernetes # # Note: assume the kbs sources were cloned to $COCO_TRUSTEE_DIR