Fix checking the existence of the cld

Related-PROD: K0RQA-15
Change-Id: I590822526fa0115b3c833d584bd5f2e795619231
diff --git a/k8s/workspace/functions.sh b/k8s/workspace/functions.sh
index a1f3f10..eeed78b 100644
--- a/k8s/workspace/functions.sh
+++ b/k8s/workspace/functions.sh
@@ -13,7 +13,7 @@
     local cluster_name="$1"
     echo ""
     echo "Checking if ClusterDeployment '$cluster_name' exists..."
-    if ! kubectl get cld -A -o name | grep -q "/$cluster_name$"; then
+    if ! kubectl get cld -A -o name | awk -F'/' '{print $NF}' | grep -qx "$cluster_name"; then
         echo "Error: ClusterDeployment '$cluster_name' not found in any namespace"
         return 1
     fi