From e70a1621f81aaa560bbe7ff5f96f870aabcf94dc Mon Sep 17 00:00:00 2001 From: Abhijeet Dhumal <84722973+abhijeet-dhumal@users.noreply.github.com> Date: Mon, 15 Jan 2024 15:27:34 +0530 Subject: [PATCH] Update functional-test.yml --- .github/workflows/functional-test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index 600da5b..219d9bc 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -18,10 +18,7 @@ jobs: - name: init directories run: mkdir -p "$(pwd)/bin" - - - name: Download setup-envtest binary file - run: curl -L -o "$(pwd)/bin/setup-envtest" https://github.com/kubernetes-sigs/kubebuilder/releases/download/v1.22.1/setup-envtest - + - name: Download kubebuilder run: | version=1.0.8 @@ -42,12 +39,15 @@ jobs: - name: Set up Kubebuilder and setup-envtest run: | + make envtest ls -l - chmod +x ./bin/setup-envtest - echo "execute permission added" + echo "envtest path $(./bin/setup-envtest use 1.23 -p path)" ls -l ./bin echo "KUBEBUILDER_ASSETS=$(./bin/setup-envtest use 1.23 -p path)" >> $GITHUB_ENV echo "USE_EXISTING_CLUSTER=false" >> $GITHUB_ENV + export KUBEBUILDER_ASSETS="$(./bin/setup-envtest use 1.23 -p path)" + export USE_EXISTING_CLUSTER=false + echo "$KUBEBUILDER_ASSETS : $USE_EXISTING_CLUSTER" - name: Test run: go test -v ./functional-tests