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. description: Create a new Constellation cluster using latest OS image.
inputs: inputs:
# TODO(elchead): remove once 2.10 is released
workerNodesCount: workerNodesCount:
description: "Number of worker nodes to spawn." description: "Number of worker nodes to spawn."
required: true required: true
@ -14,6 +15,9 @@ inputs:
machineType: machineType:
description: "Machine type of VM to spawn." description: "Machine type of VM to spawn."
required: false required: false
cliVersion:
description: "Version of the CLI"
required: true
osImage: osImage:
description: "OS image to use." description: "OS image to use."
required: true required: true
@ -144,6 +148,7 @@ runs:
yq eval -i "(.nodeGroups[] | .instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml yq eval -i "(.nodeGroups[] | .instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
- name: Set node count - name: Set node count
if: inputs.cliVersion != 'v2.9.0' && inputs.cliVersion != 'v2.9.1'
shell: bash shell: bash
run: | run: |
yq eval -i "(.nodeGroups[] | select(.role == \"control-plane\") | .initialCount) = ${{ inputs.controlNodesCount }}" constellation-conf.yaml yq eval -i "(.nodeGroups[] | select(.role == \"control-plane\") | .initialCount) = ${{ inputs.controlNodesCount }}" constellation-conf.yaml

View File

@ -74,7 +74,7 @@ inputs:
fetchMeasurements: fetchMeasurements:
default: "false" default: "false"
description: "Update measurements via the 'constellation config fetch-measurements' command." description: "Update measurements via the 'constellation config fetch-measurements' command."
outputs: outputs:
kubeconfig: kubeconfig:
description: "The kubeconfig for the cluster." description: "The kubeconfig for the cluster."
@ -240,6 +240,7 @@ runs:
existingConfig: ${{ steps.constellation-iam-create.outputs.existingConfig }} existingConfig: ${{ steps.constellation-iam-create.outputs.existingConfig }}
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }} artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
fetchMeasurements: ${{ inputs.fetchMeasurements }} fetchMeasurements: ${{ inputs.fetchMeasurements }}
cliVersion: ${{ inputs.cliVersion }}
# #
# Test payloads # Test payloads