Skip to content

Commit

Permalink
chore:change gke node size
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Jun 13, 2024
1 parent 1954776 commit 7ced7ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/terraform-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ jobs:
if [[ ("${{ inputs.cloud-provider }}" == "eks" || "${{ inputs.cloud-provider }}" == "aks" || "${{ inputs.cloud-provider }}" == "aks-cn" ) && -n "${COUNTS}" && -z "${NODE_SIZE}" ]]; then
NODE_SIZE="$(( $COUNTS * 2 ))"
elif [[ "${{ inputs.cloud-provider }}" == "gke" && -n "${COUNTS}" && -z "${NODE_SIZE}" ]]; then
NODE_SIZE="$(( $COUNTS / 2 + 1 ))"
NODE_SIZE="$(( $COUNTS / 4 + 1 ))"
fi
if [[ ("${{ inputs.cloud-provider }}" == "eks" || "${{ inputs.cloud-provider }}" == "aks" || "${{ inputs.cloud-provider }}" == "aks-cn" ) && -z "${NODE_SIZE}" && -z "${{ inputs.test-mode }}" ]]; then
Expand All @@ -211,15 +211,15 @@ jobs:
fi
elif [[ "${{ inputs.cloud-provider }}" == "gke" && -z "${NODE_SIZE}" && -z "${{ inputs.test-mode }}" ]]; then
if [[ "${{ inputs.kb-version }}" == "v0.5."* ]]; then
NODE_SIZE=2
NODE_SIZE=1
elif [[ "${{ inputs.kb-version }}" == "v0.6."* ]]; then
NODE_SIZE=6
NODE_SIZE=3
elif [[ "${{ inputs.kb-version }}" == "v0.7."* ]]; then
NODE_SIZE=11
NODE_SIZE=6
elif [[ "${{ inputs.kb-version }}" == "v0.8."* ]]; then
NODE_SIZE=13
NODE_SIZE=7
elif [[ "${{ inputs.kb-version }}" == "v0.9."* ]]; then
NODE_SIZE=14
NODE_SIZE=8
fi
fi
Expand Down

0 comments on commit 7ced7ed

Please sign in to comment.