Skip to content

Commit

Permalink
ci: fix az aks get-versions command failure (#1278)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Aug 18, 2023
1 parent f797835 commit 85b6219
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .pipelines/templates/aks-setup.yaml
Expand Up @@ -18,15 +18,15 @@ steps:
fi
displayName: "Set cluster name"
condition: succeeded()
- script: |
echo "##vso[task.setvariable variable=NODE_VM_SIZE]Standard_DS2_v2"
displayName: "Determine VM Size"
condition: succeeded()
- script: |
#Run test with latest on preview aks version available
aksVersion=$(az aks get-versions -l $(AZURE_LOCATION) --query "max(orchestrators[?isPreview==null&&orchestratorVersion>'1.20'].orchestratorVersion)" -otsv)
- script: |
# Run test with latest non-preview aks version available
aksVersion=$(az aks get-versions -l $(AZURE_LOCATION) --query 'values[?isPreview==null].patchVersions[]' | jq '[.[] | to_entries[] | .key ] | max')
echo "AKS Install version - $aksVersion"
echo "##vso[task.setvariable variable=AKS_INSTALL_VERSION]$aksVersion"
Expand All @@ -35,9 +35,9 @@ steps:
- ${{ if eq(parameters.testClusterUpgrade, true) }}:
# Overrride AKS_INSTALL_VERSION if testing with k8s upgrade
# If we are running test with cluster upgrade, start with minimum possible non preview version.
# If we are running test with cluster upgrade, start with minimum possible non preview version.
- script: |
aksVersion=$(az aks get-versions -l $(AZURE_LOCATION) --query "min(orchestrators[?isPreview==null&&orchestratorVersion>'1.20'].orchestratorVersion)" -otsv)
aksVersion=$(az aks get-versions -l $(AZURE_LOCATION) --query 'values[?isPreview==null].patchVersions[]' | jq '[.[] | to_entries[] | .key ] | min')
echo "AKS Install version - $aksVersion"
echo "##vso[task.setvariable variable=AKS_INSTALL_VERSION]$aksVersion"
Expand Down

0 comments on commit 85b6219

Please sign in to comment.