Merge pull request #11637 from kata-containers/sprt/remove-install-az-cli

gha: Remove unnecessary install-azure-cli step
This commit is contained in:
Aurélien Bombo 2025-08-01 09:34:46 -05:00 committed by GitHub
commit c47bff6d6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 3 additions and 17 deletions

View File

@ -91,9 +91,6 @@ jobs:
- name: Install kata
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
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:

View File

@ -268,9 +268,6 @@ jobs:
- name: Install kata
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
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:

View File

@ -72,9 +72,6 @@ jobs:
env:
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
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:

View File

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

View File

@ -86,11 +86,6 @@ function enable_cluster_approuting() {
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() {
test_type="${1:-k8s}"
local short_sha
@ -114,6 +109,9 @@ function create_cluster() {
-l eastus \
-n "${rg}"
# Required by e.g. AKS App Routing for KBS installation.
az extension add --name aks-preview
# Adding a double quote on the last line ends up causing issues
# ine the cbl-mariner installation. Because of that, let's just
# disable the warning for this specific case.

View File

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

View File

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