gha: Remove unnecessary install-azure-cli step

This is already covered by the azure/login action.

Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
Aurélien Bombo
2025-07-29 19:50:17 -05:00
parent 95cf4e7524
commit 40e1bd0b14
7 changed files with 2 additions and 17 deletions

View File

@@ -91,9 +91,6 @@ jobs:
- name: Install kata - name: Install kata
run: bash tests/integration/kubernetes/gha-run.sh install-kata-tools kata-artifacts run: bash tests/integration/kubernetes/gha-run.sh install-kata-tools kata-artifacts
- name: Download Azure CLI
run: bash tests/integration/kubernetes/gha-run.sh install-azure-cli
- name: Log into the Azure account - name: Log into the Azure account
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0 uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with: with:

View File

@@ -268,9 +268,6 @@ jobs:
- name: Install kata - name: Install kata
run: bash tests/integration/kubernetes/gha-run.sh install-kata-tools kata-artifacts run: bash tests/integration/kubernetes/gha-run.sh install-kata-tools kata-artifacts
- name: Download Azure CLI
run: bash tests/integration/kubernetes/gha-run.sh install-azure-cli
- name: Log into the Azure account - name: Log into the Azure account
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0 uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with: with:

View File

@@ -72,9 +72,6 @@ jobs:
env: env:
TARGET_BRANCH: ${{ inputs.target-branch }} TARGET_BRANCH: ${{ inputs.target-branch }}
- name: Download Azure CLI
run: bash tests/functional/kata-deploy/gha-run.sh install-azure-cli
- name: Log into the Azure account - name: Log into the Azure account
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0 uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with: with:

View File

@@ -53,7 +53,6 @@ function main() {
action="${1:-}" action="${1:-}"
case "${action}" in case "${action}" in
install-azure-cli) install_azure_cli ;;
create-cluster) create_cluster "kata-deploy" ;; create-cluster) create_cluster "kata-deploy" ;;
deploy-k8s) deploy_k8s ;; deploy-k8s) deploy_k8s ;;
install-bats) install_bats ;; install-bats) install_bats ;;

View File

@@ -86,11 +86,6 @@ function enable_cluster_approuting() {
az aks approuting enable -g "${rg}" -n "${cluster_name}" az aks approuting enable -g "${rg}" -n "${cluster_name}"
} }
function install_azure_cli() {
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az extension add --name aks-preview
}
function create_cluster() { function create_cluster() {
test_type="${1:-k8s}" test_type="${1:-k8s}"
local short_sha local short_sha
@@ -114,6 +109,8 @@ function create_cluster() {
-l eastus \ -l eastus \
-n "${rg}" -n "${rg}"
az extension add --name aks-preview
# Adding a double quote on the last line ends up causing issues # Adding a double quote on the last line ends up causing issues
# ine the cbl-mariner installation. Because of that, let's just # ine the cbl-mariner installation. Because of that, let's just
# disable the warning for this specific case. # disable the warning for this specific case.

View File

@@ -566,7 +566,6 @@ function main() {
action="${1:-}" action="${1:-}"
case "${action}" in case "${action}" in
install-azure-cli) install_azure_cli ;;
create-cluster) create_cluster "" ;; create-cluster) create_cluster "" ;;
create-cluster-kcli) create_cluster_kcli ;; create-cluster-kcli) create_cluster_kcli ;;
configure-snapshotter) configure_snapshotter ;; configure-snapshotter) configure_snapshotter ;;

View File

@@ -28,7 +28,6 @@ function run_tests() {
function main() { function main() {
action="${1:-}" action="${1:-}"
case "${action}" in case "${action}" in
install-azure-cli) install_azure_cli ;;
create-cluster) create_cluster ;; create-cluster) create_cluster ;;
install-bats) install_bats ;; install-bats) install_bats ;;
install-kata-tools) install_kata_tools ;; install-kata-tools) install_kata_tools ;;