mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-02 18:06:54 -04:00
fix upgrade test by only setting nodeGroup for >v2.9 (#2176)
This commit is contained in:
parent
cc10613252
commit
9dcad0ed16
2 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,7 @@ name: Constellation create
|
|||
description: Create a new Constellation cluster using latest OS image.
|
||||
|
||||
inputs:
|
||||
# TODO(elchead): remove once 2.10 is released
|
||||
workerNodesCount:
|
||||
description: "Number of worker nodes to spawn."
|
||||
required: true
|
||||
|
@ -14,6 +15,9 @@ inputs:
|
|||
machineType:
|
||||
description: "Machine type of VM to spawn."
|
||||
required: false
|
||||
cliVersion:
|
||||
description: "Version of the CLI"
|
||||
required: true
|
||||
osImage:
|
||||
description: "OS image to use."
|
||||
required: true
|
||||
|
@ -144,6 +148,7 @@ runs:
|
|||
yq eval -i "(.nodeGroups[] | .instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
|
||||
|
||||
- name: Set node count
|
||||
if: inputs.cliVersion != 'v2.9.0' && inputs.cliVersion != 'v2.9.1'
|
||||
shell: bash
|
||||
run: |
|
||||
yq eval -i "(.nodeGroups[] | select(.role == \"control-plane\") | .initialCount) = ${{ inputs.controlNodesCount }}" constellation-conf.yaml
|
||||
|
|
3
.github/actions/e2e_test/action.yml
vendored
3
.github/actions/e2e_test/action.yml
vendored
|
@ -74,7 +74,7 @@ inputs:
|
|||
fetchMeasurements:
|
||||
default: "false"
|
||||
description: "Update measurements via the 'constellation config fetch-measurements' command."
|
||||
|
||||
|
||||
outputs:
|
||||
kubeconfig:
|
||||
description: "The kubeconfig for the cluster."
|
||||
|
@ -240,6 +240,7 @@ runs:
|
|||
existingConfig: ${{ steps.constellation-iam-create.outputs.existingConfig }}
|
||||
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
|
||||
fetchMeasurements: ${{ inputs.fetchMeasurements }}
|
||||
cliVersion: ${{ inputs.cliVersion }}
|
||||
|
||||
#
|
||||
# Test payloads
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue