From a5d3015de8d9de08000e25c46762542904a47469 Mon Sep 17 00:00:00 2001 From: Alexandre Lamarre Date: Mon, 15 Apr 2024 13:03:37 -0400 Subject: [PATCH] temprorary changes to e2e gha Signed-off-by: Alexandre Lamarre --- .github/workflows/e2e-test.yaml | 2 +- .../workflows/e2e/scripts/setup-cluster.sh | 34 ------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100755 .github/workflows/e2e/scripts/setup-cluster.sh diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index c77b54e7..d8417447 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -46,7 +46,7 @@ jobs: kubectl config use-context k3d-${{ env.CLUSTER_NAME }} kubectl get nodes -o wide - name : Import BRO images - run : k3d image import ${{ env.REPO }}/rancher/backup-restore-operator:${{ env.TAG}} + run : k3d image import ${{ env.REPO }}/rancher/backup-restore-operator:${{ env.TAG}} -c ${{ env.CLUSTER_NAME }} - name : e2e test run : ./scripts/integration diff --git a/.github/workflows/e2e/scripts/setup-cluster.sh b/.github/workflows/e2e/scripts/setup-cluster.sh deleted file mode 100755 index 5a75bf37..00000000 --- a/.github/workflows/e2e/scripts/setup-cluster.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -set -e -set -x - -# waits until all nodes are ready -wait_for_nodes(){ - echo "wait until all agents are ready" - while : - do - readyNodes=1 - statusList=$(kubectl get nodes --no-headers | awk '{ print $2}') - # shellcheck disable=SC2162 - while read status - do - if [ "$status" == "NotReady" ] || [ "$status" == "" ] - then - readyNodes=0 - break - fi - done <<< "$(echo -e "$statusList")" - # all nodes are ready; exit - if [[ $readyNodes == 1 ]] - then - break - fi - sleep 1 - done -} - -k3d cluster create ${CLUSTER_NAME} -wait_for_nodes - -echo "${CLUSTER_NAME} ready" \ No newline at end of file