fix upgrade test by only setting nodeGroup for >v2.9 (#2176)

This commit is contained in:
Adrian Stobbe 2023-08-07 11:02:00 +02:00 committed by GitHub
parent cc10613252
commit 9dcad0ed16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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