diff --git a/.github/workflows/e2e-test-provider-example.yml b/.github/workflows/e2e-test-provider-example.yml index d3a30a2bdc..16fdd070c6 100644 --- a/.github/workflows/e2e-test-provider-example.yml +++ b/.github/workflows/e2e-test-provider-example.yml @@ -21,7 +21,7 @@ on: description: "OS Image version used in the cluster's VMs. If not set, the latest nightly image from main is used." type: string providerVersion: - description: "Constellation Terraform provider version to use (without v prefix). Empty value means build from source." + description: "Constellation Terraform provider version to use (with v prefix). Empty value means build from source." type: string toImage: description: Image (shortpath) the cluster is upgraded to, or empty for main/nightly. @@ -32,7 +32,7 @@ on: type: string required: false toProviderVersion: - description: Provider version and microservice version to target for the upgrade, empty for no upgrade. + description: Provider version and microservice version to target for the upgrade (with v prefix). Empty value means use provider from source. type: string required: false workflow_call: @@ -51,7 +51,7 @@ on: description: "OS Image version used in the cluster's VMs, as specified in the Constellation config. If not set, the latest nightly image from main is used." type: string providerVersion: - description: "Constellation Terraform provider version to use. Empty value means build from source." + description: "Constellation Terraform provider version to use (with v prefix). Empty value means build from source." type: string toImage: description: Image (shortpath) the cluster is upgraded to, or empty for main/nightly. @@ -62,7 +62,7 @@ on: type: string required: false toProviderVersion: - description: Provider version and microservice version to target for the upgrade, empty for no upgrade. + description: Provider version and microservice version to target for the upgrade (with v prefix). Empty value means use provider from source. type: string required: false @@ -129,14 +129,14 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Setup bazel - if: inputs.providerVersion == '' + if: inputs.providerVersion == '' || inputs.toProviderVersion == '' uses: ./.github/actions/setup_bazel_nix with: useCache: "true" buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }} - name: Build Terraform provider binary - if: inputs.providerVersion == '' + if: inputs.providerVersion == '' || inputs.toProviderVersion == '' uses: ./.github/actions/build_tf_provider with: targetOS: 'linux' @@ -144,7 +144,7 @@ jobs: outputPath: "build/terraform-provider-constellation" - name: Move Terraform provider binary - if: inputs.providerVersion == '' + if: inputs.providerVersion == '' || inputs.toProviderVersion == '' shell: bash id: install_tf_provider run: | @@ -260,7 +260,7 @@ jobs: run: | cp ${{ github.workspace }}/terraform-provider-constellation/examples/full/${{ inputs.cloudProvider }}/main.tf ${{ github.workspace }}/cluster/main.tf - - name: Download CLI + - name: Download CLI # needed for Azure MAA patch and the upgrade test shell: bash run: | curl -fsSL -o constellation https://github.com/edgelesssys/constellation/releases/download/v2.13.0/constellation-linux-amd64 @@ -283,7 +283,7 @@ jobs: TF_LOG=INFO terraform apply -auto-approve fi - - name: Update cluster configuration + - name: Update cluster configuration # for duplicate variable declaration, the last one is used working-directory: ${{ github.workspace }}/cluster shell: bash run: | @@ -294,18 +294,40 @@ jobs: } EOF fi - if [[ "${{ inputs.toProviderVersion }}" != "" ]]; then + + if [[ "${{ inputs.toKubernetes }}" != "" ]]; then + cat >> _override.tf <> _override.tf <