Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use proper talos_version_contract for TF tests #8341

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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