From 5ff53e4d1cb94cef04477e36135b932edd28e077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 17 May 2024 20:28:24 +0200 Subject: [PATCH] ci: azure: Workaround azure cli installation script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is done in order to work around https://github.com/Azure/azure-cli/issues/28984, following a suggestion on the very same issue. Signed-off-by: Fabiano FidĂȘncio --- tests/gha-run-k8s-common.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/gha-run-k8s-common.sh b/tests/gha-run-k8s-common.sh index 9a2244ebff..204c66587a 100644 --- a/tests/gha-run-k8s-common.sh +++ b/tests/gha-run-k8s-common.sh @@ -62,7 +62,14 @@ function enable_cluster_http_application_routing() { } function install_azure_cli() { - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash + # This is a workaround for https://github.com/Azure/azure-cli/issues/28984 + # which ended up breaking our CI. + curl -sL https://aka.ms/InstallAzureCLIDeb -o installAzureCli.sh + sed -i '/curl -sLS https:\/\/packages.microsoft.com\/keys\/microsoft.asc |/d' installAzureCli.sh + sed -i '/gpg --dearmor -o \/etc\/apt\/keyrings\/microsoft.gpg/d' installAzureCli.sh + sed -i '/chmod go+r \/etc\/apt\/keyrings\/microsoft.gpg/d' installAzureCli.sh + sudo bash installAzureCli.sh + # The aks-preview extension is required while the Mariner Kata host is in preview. az extension add --name aks-preview }