Files
kata-containers/tests/stability/gha-stability-run.sh
Wainer dos Santos Moschetta e4da3b84a3 workflows: adopting azure/setup-kubectl
There are workflows that rely on `az aks install-cli` to get kubectl
installed. There is a well-known problem on install-cli, related with
API usage rate limit, that has recently caused the command to fail
quite often.

This is replacing install-cli with the azure/setup-kubectl github
action which has no such as rate limit problem.

While here, removed the install_cli() function from gha-run-k8s-common.sh
so avoid developers using it by mistake in the future.

Fixes #11463
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
2025-07-08 15:15:54 -03:00

47 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
set -o errexit
set -o nounset
set -o pipefail
stability_dir="$(dirname "$(readlink -f "$0")")"
source "${stability_dir}/../metrics/lib/common.bash"
source "${stability_dir}/../gha-run-k8s-common.sh"
kata_tarball_dir="${2:-kata-artifacts}"
function run_tests() {
info "Running scability test using ${KATA_HYPERVISOR} hypervisor"
bash "${stability_dir}/kubernetes_stability.sh"
info "Running soak stability test using ${KATA_HYPERVISOR} hypervisor"
bash "${stability_dir}/kubernetes_soak_test.sh"
info "Running stressng stability test using ${KATA_HYPERVISOR} hypervisor"
bash "${stability_dir}/kubernetes_stressng.sh"
}
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 ;;
get-cluster-credentials) get_cluster_credentials ;;
deploy-snapshotter) deploy_snapshotter ;;
deploy-kata-aks) deploy_kata "aks" ;;
deploy-coco-kbs) deploy_coco_kbs ;;
install-kbs-client) install_kbs_client ;;
run-tests) run_tests ;;
delete-cluster) cleanup "aks" ;;
*) >&2 die "Invalid argument" ;;
esac
}
main "$@"