File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2828 # pulling k8s version from AKS.
2929 eval k8sVersion="v"$( az aks show -g ${{ parameters.clusterName }} -n ${{ parameters.clusterName }} --query "currentKubernetesVersion")
3030 echo $k8sVersion
31+ patchVersion=`echo "${k8sVersion##*.}"`
32+ if [ $patchVersion -ge 100 ]; then
33+ # For LTS versions we use a commonly reached patch version from kubernetes upstream
34+ k8sVersion="${k8sVersion%.*}.12"
35+ echo "LTS version detected, adjusting k8sVersion to ${k8sVersion}"
36+ fi
3137 curl -L https://dl.k8s.io/$k8sVersion/kubernetes-test-linux-amd64.tar.gz -o ./kubernetes-test-linux-amd64.tar.gz
3238
3339 # 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
You can’t perform that action at this time.
0 commit comments