From 66bcfe7369b887a0068ca4e75dfad3a78105c4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 27 Sep 2024 20:32:19 +0200 Subject: [PATCH] k8s: kbs: Properly delete ita kustomization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ita kustomization for Trustee, as well as previously used one (DCAP), doesn't have a $(uname -m) directory after the deployment directory name. Let's follow the same logic used for the deploy-kbs script and clean those up accordingly. Signed-off-by: Fabiano FidĂȘncio --- tests/integration/kubernetes/confidential_kbs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/integration/kubernetes/confidential_kbs.sh b/tests/integration/kubernetes/confidential_kbs.sh index 33fa53728e..b16ad2cc76 100644 --- a/tests/integration/kubernetes/confidential_kbs.sh +++ b/tests/integration/kubernetes/confidential_kbs.sh @@ -224,7 +224,12 @@ kbs_uninstall_cli() { # function kbs_k8s_delete() { pushd "$COCO_KBS_DIR" - kubectl delete -k config/kubernetes/overlays/$(uname -m) + if [ "${KATA_HYPERVISOR}" = "qemu-tdx" ]; then + kubectl delete -k config/kubernetes/ita + else + kubectl delete -k config/kubernetes/overlays/$(uname -m) + fi + # Verify that KBS namespace resources were properly deleted cmd="kubectl get all -n $KBS_NS 2>&1 | grep 'No resources found'" waitForProcess "120" "30" "$cmd"