Skip to content

Commit

Permalink
chore: use proper talos_version_contract for TF tests
Browse files Browse the repository at this point in the history
Use proper `talos_version_contract` for TF tests.

Depends on: siderolabs/contrib#36

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Feb 22, 2024
1 parent 815a8e9 commit 76a6071
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hack/test/e2e-aws-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ jq --null-input \
--arg AMI_ID "${AMI_ID}" \
--arg NVIDIA_AMI_ID "${NVIDIA_AMI_ID}" \
--arg CLUSTER_NAME "${NAME_PREFIX}" \
--arg TALOS_VERSION_CONTRACT "${TALOS_VERSION}" \
--arg KUBERNETES_VERSION "${KUBERNETES_VERSION}" \
'{worker_group: $WORKER_GROUP, ami_id: $AMI_ID, nvidia_ami_id: $NVIDIA_AMI_ID, cluster_name: $CLUSTER_NAME, kubernetes_version: $KUBERNETES_VERSION}' \
'{worker_group: $WORKER_GROUP, ami_id: $AMI_ID, nvidia_ami_id: $NVIDIA_AMI_ID, cluster_name: $CLUSTER_NAME, talos_version_contract: $TALOS_VERSION_CONTRACT, kubernetes_version: $KUBERNETES_VERSION}' \
| jq -f hack/test/tfvars/aws.jq > "${ARTIFACTS}/e2e-aws-generated/vars.json"

cp hack/test/tfvars/*.yaml "${ARTIFACTS}/e2e-aws-generated"
3 changes: 2 additions & 1 deletion hack/test/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ mkdir -p "${TMP}"
# Talos

export TALOSCONFIG="${TMP}/talosconfig"
export TALOS_VERSION=v1.1
TALOS_VERSION=$(cut -d "." -f 1,2 <<< "${TAG}")
export TALOS_VERSION

# Kubernetes

Expand Down
1 change: 1 addition & 0 deletions hack/test/tfvars/aws.jq
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cluster_name": .cluster_name,
"ccm": true,
"talos_version_contract": .talos_version_contract,
"kubernetes_version": .kubernetes_version,
"control_plane": {
"ami_id": .ami_id,
Expand Down

0 comments on commit 76a6071

Please sign in to comment.