From 67dce975f9d072411e07a265735b5c9b4af6be73 Mon Sep 17 00:00:00 2001 From: Kevin Pouget Date: Tue, 18 Oct 2022 18:06:35 +0200 Subject: [PATCH] testing: ods: clusters: correctly create the default KUBECONFIG --- testing/ods/clusters.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/ods/clusters.sh b/testing/ods/clusters.sh index 573c6601b..1c1968a80 100755 --- a/testing/ods/clusters.sh +++ b/testing/ods/clusters.sh @@ -79,8 +79,8 @@ create_clusters() { process_ctrl::wait_bg_processes # cluster that will be available right away when going to the debug tab of the test pod - if [[ ! -e "${SHARED_DIR}/kubeconfig" && "${CI_DEFAULT_CLUSTER}" == "$cluster_type" ]]; then - ln -s "${SHARED_DIR}/${CI_DEFAULT_CLUSTER}_kubeconfig" "${SHARED_DIR}/kubeconfig" + if [[ ! -e "$KUBECONFIG" ]]; then + ln -s "${SHARED_DIR}/${CI_DEFAULT_CLUSTER}_kubeconfig" "$KUBECONFIG" fi if [[ "$create_flag" == "keep" ]]; then