From b5474505f0dc972667c3fe9a4b89025bc0debee8 Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Fri, 5 Jan 2024 09:08:09 +0100 Subject: [PATCH] fixup! add upgrade to test --- .../workflows/e2e-test-provider-example.yml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-test-provider-example.yml b/.github/workflows/e2e-test-provider-example.yml index 110186c47a0..7350a946202 100644 --- a/.github/workflows/e2e-test-provider-example.yml +++ b/.github/workflows/e2e-test-provider-example.yml @@ -165,6 +165,24 @@ jobs: with: service_account: "terraform-e2e@constellation-e2e.iam.gserviceaccount.com" + + - name: Download CLI # needed to determine K8s version for release versions + if: inputs.providerVersion != '' + shell: bash + run: | + curl -fsSL -o constellation https://github.com/edgelesssys/constellation/releases/download/${{ inputs.providerVersion }}/constellation-linux-amd64 + chmod u+x constellation + ./constellation version + mkdir -p ${{ github.workspace }}/release + cp ./constellation ${{ github.workspace }}/release + + - name: Build CLI # doing + uses: ./.github/actions/build_cli + with: + enterpriseCLI: true + outputPath: "build/constellation" + push: true + - name: Common CSP Terraform overrides working-directory: ${{ github.workspace }} shell: bash @@ -202,7 +220,11 @@ jobs: fi # take the middle (2nd) supported Kubernetes version (default) - kubernetes_version="$(../build/constellation config kubernetes-versions | awk 'NR==3{print $1}')" + if [[ "${{ inputs.providerVersion }}" != "" ]]; then + kubernetes_version="$(../release/constellation config kubernetes-versions | awk 'NR==3{print $1}')" + else + kubernetes_version="$(../build/constellation config kubernetes-versions | awk 'NR==3{print $1}')" + fi cat > _override.tf <