mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 15:35:55 -04:00
remove upgrade logic
This commit is contained in:
parent
335ba13a95
commit
5c7da0dc4e
71
.github/workflows/e2e-test-provider-example.yml
vendored
71
.github/workflows/e2e-test-provider-example.yml
vendored
@ -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 <<EOF
|
||||
locals {
|
||||
version = "${{ inputs.toImage }}"
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
if [[ "${{ inputs.toProviderVersion }}" != "" ]]; then
|
||||
cat >> _override.tf <<EOF
|
||||
terraform {
|
||||
required_providers {
|
||||
constellation = {
|
||||
source = "edgelesssys/constellation"
|
||||
version = "${{ inputs.toProviderVersion }}"
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
# TODO rename version to image_version
|
||||
|
||||
- name: Upgrade Terraform Cluster
|
||||
working-directory: ${{ github.workspace }}/cluster
|
||||
shell: bash
|
||||
@ -318,28 +269,6 @@ jobs:
|
||||
terraform init --upgrade
|
||||
TF_LOG=INFO terraform apply -auto-approve
|
||||
|
||||
- name: Assert upgrade successful
|
||||
working-directory: ${{ github.workspace }}/cluster
|
||||
env:
|
||||
IMAGE: ${{ inputs.toImage }}
|
||||
KUBERNETES: ${{ inputs.toKubernetes }}
|
||||
MICROSERVICES: ${{ inputs.toProviderVersion }}
|
||||
WORKERNODES: 2
|
||||
CONTROLNODES: 2
|
||||
run: |
|
||||
terraform output -raw kubeconfig > 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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user