diff --git a/.github/actions/constellation_create/action.yml b/.github/actions/constellation_create/action.yml index 734da84d2..d77cfcb2b 100644 --- a/.github/actions/constellation_create/action.yml +++ b/.github/actions/constellation_create/action.yml @@ -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 diff --git a/.github/actions/e2e_test/action.yml b/.github/actions/e2e_test/action.yml index ccfb57c8c..44947a429 100644 --- a/.github/actions/e2e_test/action.yml +++ b/.github/actions/e2e_test/action.yml @@ -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