From 1de466fe848c04a8d3a71465e2318f964c3fb9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bombo?= Date: Thu, 24 Apr 2025 15:01:08 -0500 Subject: [PATCH] temp: ci: Fix AKS cluster creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AKS CLI recently introduced a regression that prevents using aks-preview extensions (Azure/azure-cli#31345), and hence create CI clusters. To address this, we temporarily hardcode the last known good version of aks-preview. Note that I removed the comment about this being a Mariner requirement, as aks-preview is also a requirement of AKS App Routing, which will be introduced soon in #11164. Signed-off-by: Aurélien Bombo --- tests/gha-run-k8s-common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/gha-run-k8s-common.sh b/tests/gha-run-k8s-common.sh index fb6105049..55878b4e7 100644 --- a/tests/gha-run-k8s-common.sh +++ b/tests/gha-run-k8s-common.sh @@ -92,8 +92,10 @@ function enable_cluster_http_application_routing() { function install_azure_cli() { curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash - # The aks-preview extension is required while the Mariner Kata host is in preview. - az extension add --name aks-preview + + # TODO: Remove the version spec when this bug is fixed: + # https://github.com/Azure/azure-cli/issues/31345 + az extension add --name aks-preview --version 14.0.0b3 } function login_azure() {