Skip to content

Commit

Permalink
test: update e2e-aws to use worker groups
Browse files Browse the repository at this point in the history
This PR updates the e2e-aws flow to use worker groups and an updated control plane variable setup.

Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
  • Loading branch information
rsmitty committed Aug 25, 2023
1 parent d03dc7a commit af0cc70
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions hack/test/tfvars/aws.jq
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
{
"cluster_name": .cluster_name,
"num_control_planes": 3,
"num_workers": (if .worker_group == "nvidia" then 0 else 3 end),
"ami_id": .ami_id,
"ccm": true,
"kubernetes_version": .kubernetes_version,
"instance_type_control_plane": "t3.large",
"instance_type_worker": "t3.large",
"extra_tags": {
"Name": .cluster_name,
"Project": "talos-e2e-ci",
"Environment": "ci"
"control_plane": {
"ami_id": .ami_id,
"instance_type": "t3.large"
},
"worker_groups": (if .worker_group == "nvidia" then [
{
Expand All @@ -24,5 +18,18 @@
"Type": "nvidia-t4"
}
}
] else [] end)
] else [
{
"name": "default",
"num_instances": 3,
"ami_id": .ami_id,
"instance_type": "t3.large"
}
] end),
"extra_tags": {
"Cluster Name": .cluster_name,
"Project": "talos-e2e-ci",
"Environment": "ci"
},

}

0 comments on commit af0cc70

Please sign in to comment.