From 6dc8d5b62a9de7081ea631754bd27de2d5aa489d Mon Sep 17 00:00:00 2001 From: John Payne <89417863+jpayne3506@users.noreply.github.com> Date: Wed, 22 Oct 2025 11:25:08 -0500 Subject: [PATCH] fix: replace AKS LTS versioning with commonly reached k8s patch version (#4094) --- .pipelines/cni/k8s-e2e/k8s-e2e-job-template.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pipelines/cni/k8s-e2e/k8s-e2e-job-template.yaml b/.pipelines/cni/k8s-e2e/k8s-e2e-job-template.yaml index 72c9092d76..bbd9504454 100644 --- a/.pipelines/cni/k8s-e2e/k8s-e2e-job-template.yaml +++ b/.pipelines/cni/k8s-e2e/k8s-e2e-job-template.yaml @@ -28,6 +28,12 @@ jobs: # pulling k8s version from AKS. eval k8sVersion="v"$( az aks show -g ${{ parameters.clusterName }} -n ${{ parameters.clusterName }} --query "currentKubernetesVersion") echo $k8sVersion + patchVersion=`echo "${k8sVersion##*.}"` + if [ $patchVersion -ge 100 ]; then + # For LTS versions we use a commonly reached patch version from kubernetes upstream + k8sVersion="${k8sVersion%.*}.12" + echo "LTS version detected, adjusting k8sVersion to ${k8sVersion}" + fi curl -L https://dl.k8s.io/$k8sVersion/kubernetes-test-linux-amd64.tar.gz -o ./kubernetes-test-linux-amd64.tar.gz # https://github.com/kubernetes/sig-release/blob/master/release-engineering/artifacts.md#content-of-kubernetes-test-system-archtargz-on-example-of-kubernetes-test-linux-amd64targz-directories-removed-from-list