From d54cdd3f0cda443301fe8ac74df7a161affb694d Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 21 Mar 2024 19:07:32 +0000 Subject: [PATCH] scripts: Fix unbound variables in k8s setup script This PR fixes the unbound variables error when trying to run the setup script locally in order to avoid errors. Fixes #9328 Signed-off-by: Gabriela Cervantes --- tests/integration/kubernetes/setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/kubernetes/setup.sh b/tests/integration/kubernetes/setup.sh index ad9f397594..94eaf83a2a 100755 --- a/tests/integration/kubernetes/setup.sh +++ b/tests/integration/kubernetes/setup.sh @@ -10,6 +10,9 @@ set -o pipefail DEBUG="${DEBUG:-}" [ -n "$DEBUG" ] && set -x +export AUTO_GENERATE_POLICY="${AUTO_GENERATE_POLICY:-no}" +export KATA_HOST_OS="${KATA_HOST_OS:-}" + if [ -n "${K8S_TEST_POLICY_FILES:-}" ]; then K8S_TEST_POLICY_FILES=($K8S_TEST_POLICY_FILES) else