ci: update actions to use nodeGroups and remove deprecated flags

This commit is contained in:
Malte Poll 2023-08-02 10:45:32 +02:00
parent b67874c54c
commit 7ea48dddef
2 changed files with 9 additions and 5 deletions

View File

@ -182,9 +182,13 @@ runs:
if: inputs.machineType && inputs.machineType != 'default'
shell: bash
run: |
yq eval -i "(.provider | select(. | has(\"azure\")).azure.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
yq eval -i "(.provider | select(. | has(\"gcp\")).gcp.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
yq eval -i "(.provider | select(. | has(\"aws\")).aws.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
yq eval -i "(.nodeGroups[] | .instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
- name: Set node count
shell: bash
run: |
yq eval -i "(.nodeGroups[] | select(.role == "control-plane") | .initialCount) = \"${{ inputs.controlNodesCount }}\"" constellation-conf.yaml
yq eval -i "(.nodeGroups[] | select(.role == "worker") | .initialCount) = \"${{ inputs.workerNodesCount }}\"" constellation-conf.yaml
- name: Create serviceAccountKey.json
if: inputs.cloudProvider == 'gcp' && !inputs.existingConfig # Skip if using existing config. serviceAccountKey.json is already present in that case.
@ -214,7 +218,7 @@ runs:
if [[ $output == *"tf-log"* ]]; then
TFFLAG="--tf-log=DEBUG"
fi
constellation create -c ${{ inputs.controlNodesCount }} -w ${{ inputs.workerNodesCount }} -y --force --debug ${TFFLAG:-}
constellation create -y --force --debug ${TFFLAG:-}
- name: Cdbg deploy
if: inputs.isDebugImage == 'true'

View File

@ -68,7 +68,7 @@ jobs:
- name: Create cluster
shell: pwsh
run: |
.\constellation.exe create --control-plane-nodes 1 --worker-nodes 2 --debug -y
.\constellation.exe create --debug -y
- name: Initialize cluster
shell: pwsh