From 5c7da0dc4ebd6fbabbbaae47b6d3a7043a95c79a Mon Sep 17 00:00:00 2001 From: Adrian Stobbe Date: Wed, 20 Dec 2023 18:03:28 +0100 Subject: [PATCH] remove upgrade logic --- .../workflows/e2e-test-provider-example.yml | 71 ------------------- 1 file changed, 71 deletions(-) diff --git a/.github/workflows/e2e-test-provider-example.yml b/.github/workflows/e2e-test-provider-example.yml index b688e3e765..dea4dbd60f 100644 --- a/.github/workflows/e2e-test-provider-example.yml +++ b/.github/workflows/e2e-test-provider-example.yml @@ -23,18 +23,6 @@ on: providerVersion: description: "Constellation Terraform provider version to use (without v prefix). Empty value means build from source." type: string - toImage: - description: Image (shortpath) the cluster is upgraded to, or empty for main/nightly. - type: string - required: false - toKubernetes: - description: Kubernetes version to target for the upgrade, empty for no upgrade. - type: string - required: false - toProviderVersion: - description: Provider version and microservice version to target for the upgrade, empty for no upgrade. - type: string - required: false workflow_call: inputs: ref: @@ -53,18 +41,6 @@ on: providerVersion: description: "Constellation Terraform provider version to use. Empty value means build from source." type: string - toImage: - description: Image (shortpath) the cluster is upgraded to, or empty for main/nightly. - type: string - required: false - toKubernetes: - description: Kubernetes version to target for the upgrade, empty for target's default version. - type: string - required: false - toProviderVersion: - description: Provider version and microservice version to target for the upgrade, empty for no upgrade. - type: string - required: false jobs: provider-example-test: @@ -286,31 +262,6 @@ jobs: TF_LOG=INFO terraform apply -auto-approve fi - - name: Update cluster configuration - working-directory: ${{ github.workspace }}/cluster - shell: bash - run: | - if [[ "${{ inputs.toImage }}" != "" ]]; then - cat >> _override.tf <> _override.tf < constellation-admin.conf - - if [[ -n ${MICROSERVICES} ]]; then - MICROSERVICES_FLAG="--target-microservices=$MICROSERVICES" - fi - if [[ -n ${KUBERNETES} ]]; then - KUBERNETES_FLAG="--target-kubernetes=$KUBERNETES" - fi - - # cfg must be in same dir as KUBECONFIG - ./constellation config generate ${{ inputs.cloudProvider }} - KUBECONFIG=${{ github.workspace }}/cluster/constellation-admin.conf bazel run //e2e/provider-upgrade:provider-upgrade_test -- --want-worker $WORKERNODES --want-control $CONTROLNODES --target-image "$IMAGE" "$KUBERNETES_FLAG" "$MICROSERVICES_FLAG" --cli ${{ github.workspace }}/cluster/constellation - - name: Destroy Terraform Cluster # outcome is part of the steps context (https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context) if: always() && steps.apply_terraform.outcome != 'skipped'